本文整理汇总了PHP中ZurmoBaseTest::teardown方法的典型用法代码示例。如果您正苦于以下问题:PHP ZurmoBaseTest::teardown方法的具体用法?PHP ZurmoBaseTest::teardown怎么用?PHP ZurmoBaseTest::teardown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZurmoBaseTest
的用法示例。
在下文中一共展示了ZurmoBaseTest::teardown方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: teardown
public function teardown()
{
if ($this->freeze) {
RedBeanDatabase::freeze();
}
parent::teardown();
}
示例2: teardown
public function teardown()
{
$super = User::getByUsername('super');
Yii::app()->user->userModel = $super;
Account::deleteAll();
parent::teardown();
}
示例3: teardown
public function teardown()
{
$marketingLists = MarketingList::getAll();
$this->assertCount(1, $marketingLists);
$marketingLists[0]->delete();
parent::teardown();
}
示例4: teardown
public function teardown()
{
$super = User::getByUsername('super');
Yii::app()->user->userModel = $super;
$accounts = Account::getAll();
foreach ($accounts as $account) {
$account->delete();
}
parent::teardown();
}
示例5: teardown
public function teardown()
{
date_default_timezone_set($this->defaultTimeZone);
parent::teardown();
}
示例6: teardown
public function teardown()
{
parent::teardown();
}
示例7: teardown
public function teardown()
{
AuditEvent::$isTableOptimized = false;
parent::teardown();
}
示例8: teardown
public function teardown()
{
parent::teardown();
Yii::app()->params['processReadMungeAsWriteMunge'] = $this->processReadMungeAsWriteMungeValue;
}