本文整理汇总了PHP中ezpDatabaseTestCase类的典型用法代码示例。如果您正苦于以下问题:PHP ezpDatabaseTestCase类的具体用法?PHP ezpDatabaseTestCase怎么用?PHP ezpDatabaseTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ezpDatabaseTestCase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
protected function setUp()
{
if (!in_array(ezpTestRunner::dsn()->dbsyntax, array('mysql', 'mysqli'))) {
self::markTestSkipped("Not running MySQL nor MysQLi, skipping");
}
parent::setUp();
}
示例2: setUp
public function setUp()
{
parent::setUp();
self::$qb = new ezfeZPSolrQueryBuilderTester();
self::$findINI = eZINI::instance('ezfind.ini');
self::$siteINI = eZINI::instance('site.ini');
}
示例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->userObject = null;
$this->userEmail = null;
$this->userLogin = null;
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
$this->testURI = null;
$this->postParams = array();
ezpINIHelper::restoreINISettings();
parent::tearDown();
}
示例6: 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();
}
示例7: tearDown
public function tearDown()
{
eZContentLanguage::removeLanguage( 'nno-NO' );
eZContentLanguage::removeLanguage( 'dan-DK' );
parent::tearDown();
}
示例8: setUp
public function setUp()
{
// Verify that the clusterClass for each implementation is properly defined
if ($this->clusterClass === false) {
$this->markTestSkipped("Test class " . get_class($this) . " does not provide the clusterClass property");
}
return parent::setUp();
}
示例9: 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();
}
示例10: tearDown
/**
* Test case teardown
*/
public function tearDown()
{
eZURLWildcard::removeByIDs(array($this->wildcard->attribute('id')));
eZURLWildcard::expireCache();
clearstatcache();
sleep(1);
parent::tearDown();
}
示例11: 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'));
}
}
示例12: setUp
public function setUp()
{
$className = 'eZSolrMultiCoreBase';
if (!class_exists($className)) {
$this->markTestSkipped("The class '{$className}' doesn't exist.");
}
parent::setUp();
}
示例13: 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();
}
示例14: setUp
public function setUp()
{
// Enabled delayed indexing in order not to index support objects
// ( the ones used for testing ezfSolrDocumentFieldObjectRelation::getData() for instance )
$siteINI = eZINI::instance('site.ini');
$siteINI->setVariable('SearchSettings', 'DelayedIndexing', 'enabled');
parent::setUp();
}
示例15: setUp
protected function setUp()
{
if (ezpTestRunner::dsn()->dbsyntax !== "postgresql") {
self::markTestSkipped("Not running PostgresSQL, skipping");
}
parent::setUp();
ezpTestDatabaseHelper::clean($this->sharedFixture);
}