public static function setUpBeforeClass() { parent::setUpBeforeClass(); SecurityTestHelper::createSuperAdmin(); $super = User::getByUsername('super'); Yii::app()->user->userModel = $super; ModulesSearchWithDataProviderTestHelper::createCustomAttributesForModel(new TestOperatorTypeModel()); }