當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ezpDatabaseTestCase類代碼示例

本文整理匯總了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();
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:7,代碼來源:ezmysqldb_fk_test.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     self::$qb = new ezfeZPSolrQueryBuilderTester();
     self::$findINI = eZINI::instance('ezfind.ini');
     self::$siteINI = eZINI::instance('site.ini');
 }
開發者ID:kevindejour,項目名稱:ezfind,代碼行數:7,代碼來源:ezfezpsolrquerybuilder_test.php

示例3: tearDown

 public function tearDown()
 {
     eZPolicyLimitation::removeByID($this->policy->attribute('id'));
     eZPolicy::removeByID($this->policy->attribute('id'));
     $this->policy = null;
     parent::tearDown();
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:7,代碼來源:ezsubtreenotificationrule_regression.php

示例4: tearDown

 public function tearDown()
 {
     $this->userObject = null;
     $this->userEmail = null;
     $this->userLogin = null;
     parent::tearDown();
 }
開發者ID:nottavi,項目名稱:ezpublish,代碼行數:7,代碼來源:ezusertype_regression.php

示例5: tearDown

 public function tearDown()
 {
     $this->testURI = null;
     $this->postParams = array();
     ezpINIHelper::restoreINISettings();
     parent::tearDown();
 }
開發者ID:netbliss,項目名稱:ezfind,代碼行數:7,代碼來源:ezsolrbase_regression.php

示例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();
    }
開發者ID:robinmuilwijk,項目名稱:ezpublish,代碼行數:10,代碼來源:ezrss_export_test.php

示例7: tearDown

    public function tearDown()
    {
        eZContentLanguage::removeLanguage( 'nno-NO' );
        eZContentLanguage::removeLanguage( 'dan-DK' );

        parent::tearDown();
    }
開發者ID:robinmuilwijk,項目名稱:ezpublish,代碼行數:7,代碼來源:ezcontentlanguage_regression.php

示例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();
 }
開發者ID:rmiguel,項目名稱:ezpublish,代碼行數:8,代碼來源:ezclusterfilehandler_abstract_test.php

示例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();
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:12,代碼來源:ezurlwildcard_test.php

示例10: tearDown

 /**
  * Test case teardown
  */
 public function tearDown()
 {
     eZURLWildcard::removeByIDs(array($this->wildcard->attribute('id')));
     eZURLWildcard::expireCache();
     clearstatcache();
     sleep(1);
     parent::tearDown();
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:11,代碼來源:ezurlwildcard_regression.php

示例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'));
     }
 }
開發者ID:netbliss,項目名稱:ezmbpaex,代碼行數:12,代碼來源:ezpaex_test.php

示例12: setUp

 public function setUp()
 {
     $className = 'eZSolrMultiCoreBase';
     if (!class_exists($className)) {
         $this->markTestSkipped("The class '{$className}' doesn't exist.");
     }
     parent::setUp();
 }
開發者ID:kevindejour,項目名稱:ezfind,代碼行數:8,代碼來源:ezsolrmulticorebase_test.php

示例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();
 }
開發者ID:rmiguel,項目名稱:ezpublish,代碼行數:12,代碼來源:ezurlwildcard_test.php

示例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();
 }
開發者ID:brookinsconsulting,項目名稱:ezecosystem,代碼行數:8,代碼來源:ezfsolrdocumentfieldbase_test.php

示例15: setUp

 protected function setUp()
 {
     if (ezpTestRunner::dsn()->dbsyntax !== "postgresql") {
         self::markTestSkipped("Not running PostgresSQL, skipping");
     }
     parent::setUp();
     ezpTestDatabaseHelper::clean($this->sharedFixture);
 }
開發者ID:runelangseid,項目名稱:ezpublish,代碼行數:8,代碼來源:ezpostgresqldb_test.php


注:本文中的ezpDatabaseTestCase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。