public function testGetAttributeImportRulesTypeBy() { Yii::app()->user->userModel = User::getByUsername('super'); $attributeImportRulesType = ImportModelTestItemImportRules::getAttributeImportRulesType('boolean'); $this->assertEquals('CheckBox', $attributeImportRulesType); }