Setting admin mode with $this->setAdminMode(true); instead of mocking in testUpdateMarkRelatedAsExpired.