Beispiel #1
0
 public static function tearDownAfterClass()
 {
     $leadSourceDropdown = Dropdowns::model()->findByPk(103);
     $leadSourceDropdown->multi = 0;
     $leadSourceDropdown->save();
     return parent::tearDownAfterClass();
 }
Beispiel #2
0
 public static function tearDownAfterClass()
 {
     AppFileUtil::$alwaysCurl = self::$_appFileUtilState['alwaysCurl'];
     AppFileUtil::$neverCurl = self::$_appFileUtilState['neverCurl'];
     Yii::app()->settings->unique_id = self::$_adminState['unique_id'];
     Yii::app()->settings->save();
     return parent::tearDownAfterClass();
 }
Beispiel #3
0
 /**
  * Clean up custom field columns 
  */
 public static function tearDownAfterClass()
 {
     $fields = Fields::model()->findAllByAttributes(array('custom' => 1));
     foreach ($fields as $field) {
         assert($field->delete());
     }
     Yii::app()->db->schema->refresh();
     Yii::app()->cache->flush();
     Contacts::model()->refreshMetaData();
     Contacts::model()->resetFieldsPropertyCache();
     AuxLib::debugLogR('Contacts::model ()->getAttributes () = ');
     AuxLib::debugLogR(Contacts::model()->getAttributes());
     parent::tearDownAfterClass();
 }
Beispiel #4
0
 public static function tearDownAfterClass()
 {
     Yii::app()->db->createCommand("\n            update x2_modules set title=:title where name='quotes'\n        ")->execute(array(':title' => 'Quotes'));
     Yii::app()->db->createCommand("\n            update x2_modules set title=:title where name='contacts'\n        ")->execute(array(':title' => 'Contacts'));
     parent::tearDownAfterClass();
 }
Beispiel #5
0
 public static function tearDownAfterClass()
 {
     X2FlowTestingAuxLib::clearLogs();
     parent::tearDownAfterClass();
 }
 public static function tearDownAfterClass()
 {
     self::restoreFields();
     return parent::tearDownAfterClass();
 }