本文整理汇总了PHP中ezpDatabaseTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP ezpDatabaseTestCase::tearDown方法的具体用法?PHP ezpDatabaseTestCase::tearDown怎么用?PHP ezpDatabaseTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ezpDatabaseTestCase
的用法示例。
在下文中一共展示了ezpDatabaseTestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
eZContentLanguage::removeLanguage( 'nno-NO' );
eZContentLanguage::removeLanguage( 'dan-DK' );
parent::tearDown();
}
示例2: tearDown
public function tearDown()
{
$this->userObject = null;
$this->userEmail = null;
$this->userLogin = null;
parent::tearDown();
}
示例3: tearDown
public function tearDown()
{
eZPolicyLimitation::removeByID($this->policy->attribute('id'));
eZPolicy::removeByID($this->policy->attribute('id'));
$this->policy = null;
parent::tearDown();
}
示例4: tearDown
public function tearDown()
{
$this->testURI = null;
$this->postParams = array();
ezpINIHelper::restoreINISettings();
parent::tearDown();
}
示例5: tearDown
/**
* Called by PHPUnit after each test.
*/
public function tearDown()
{
// Log in as whoever was logged in
eZUser::setCurrentlyLoggedInUser( $this->currentUser, $this->currentUser->attribute( 'id' ) );
parent::tearDown();
}
示例6: tearDown
/**
* Test case teardown
* Restores the INI settings changed in setUp
*/
public function tearDown()
{
eZDB::instance()->query('DELETE FROM ezurlwildcard');
eZURLWildcard::expireCache();
clearstatcache();
sleep(1);
parent::tearDown();
}
示例7: tearDown
/**
* Test case teardown
*/
public function tearDown()
{
eZURLWildcard::removeByIDs(array($this->wildcard->attribute('id')));
eZURLWildcard::expireCache();
clearstatcache();
sleep(1);
parent::tearDown();
}
示例8: tearDown
/**
* tearDown():
* - deletes the admin PAEX object if it still exists
**/
public function tearDown()
{
parent::tearDown();
// remove the PAEX object if it hasn't been removed by the test
if (eZPaEx::fetch($this->paex->attribute('contentobject_id'))) {
eZPaEx::removePaex($this->paex->attribute('contentobject_id'));
}
}
示例9: tearDown
/**
* Test case teardown
* Restores the INI settings changed in setUp
**/
public function tearDown()
{
$ini = eZINI::instance('site.ini');
$ini->setVariable('DatabaseSettings', 'DatabaseImplementation', $this->iniBackup['implementationBackup']);
$ini->setVariable('DatabaseSettings', 'Server', $this->iniBackup['serverBackup']);
$ini->setVariable('DatabaseSettings', 'Database', $this->iniBackup['databaseBackup']);
parent::tearDown();
}
示例10: tearDown
public function tearDown()
{
if ($this->object !== null) {
$this->destroyObject();
}
eZContentClassOperations::remove($this->class->id);
parent::tearDown();
}
示例11: tearDown
public function tearDown()
{
if ($this->language instanceof eZContentLanguage) {
if (!$this->language->removeThis()) {
trigger_error('Could not remove language nor-NO, probably still existing content / class in this language!');
}
}
parent::tearDown();
}
示例12: tearDown
public function tearDown()
{
$this->fileAttribute = null;
$this->imageObject->remove();
$this->imageObject = null;
eZContentClassOperations::remove($this->imageClass->id);
$this->imageClass = null;
parent::tearDown();
}
示例13: tearDown
public function tearDown()
{
// Remove trigger
eZTrigger::removeTriggerForWorkflow($this->workflow->attribute('id'));
// Log in as whoever was logged in
eZUser::setCurrentlyLoggedInUser($this->currentUser, $this->currentUser->attribute('id'));
// Important that the parent method is run AFTER changes are done to the database.
parent::tearDown();
}
示例14: tearDown
public function tearDown()
{
$this->solrSearch->removeObject($this->object->object);
$this->object->remove();
$this->object = null;
$this->solrSearch = null;
ezpINIHelper::restoreINISettings();
parent::tearDown();
}
示例15: tearDown
public function tearDown()
{
$nor = eZContentLanguage::fetchByLocale('nno-NO');
$dan = eZContentLanguage::fetchByLocale('dan-DK');
if ($nor) {
$nor->removeThis();
}
if ($dan) {
$dan->removeThis();
}
parent::tearDown();
}