• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ezpDatabaseTestCase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ezpDatabaseTestCase的典型用法代码示例。如果您正苦于以下问题:PHP ezpDatabaseTestCase类的具体用法?PHP ezpDatabaseTestCase怎么用?PHP ezpDatabaseTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ezpDatabaseTestCase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: tearDown

 public function tearDown()
 {
     if ($this->object !== null) {
         $this->destroyObject();
     }
     eZContentClassOperations::remove($this->class->id);
     parent::tearDown();
 }
开发者ID:nlenardou,项目名称:ezpublish,代码行数:8,代码来源:ezdatatype_abstract_test.php


示例17: setUp

 public function setUp()
 {
     parent::setUp();
     $imageClass = new ezpClass(self::CLASS_IDENTIFIER, self::CLASS_IDENTIFIER, "<name>");
     $imageClass->add("Name", "name", "ezstring");
     $imageClass->add("Image", "image", "ezimage");
     $imageClass->store();
 }
开发者ID:brookinsconsulting,项目名称:ezecosystem,代码行数:8,代码来源:ezcachetest.php


示例18: setUp

 protected function setUp()
 {
     if (!in_array(ezpTestRunner::dsn()->dbsyntax, array('mysql', 'mysqli'))) {
         self::markTestSkipped("Not running MySQL nor MysQLi, skipping");
     }
     parent::setUp();
     // clean up the database so that the tests are independant from the ezp database
     ezpTestDatabaseHelper::clean($this->sharedFixture);
 }
开发者ID:rmiguel,项目名称:ezpublish,代码行数:9,代码来源:ezmysqldb_fk_test.php


示例19: tearDown

 public function tearDown()
 {
     $this->solrSearch->removeObject($this->object->object);
     $this->object->remove();
     $this->object = null;
     $this->solrSearch = null;
     ezpINIHelper::restoreINISettings();
     parent::tearDown();
 }
开发者ID:netbliss,项目名称:ezfind,代码行数:9,代码来源:ezsolr_regression.php


示例20: tearDown

 public function tearDown()
 {
     $this->fileAttribute = null;
     $this->imageObject->remove();
     $this->imageObject = null;
     eZContentClassOperations::remove($this->imageClass->id);
     $this->imageClass = null;
     parent::tearDown();
 }
开发者ID:nfrp,项目名称:ezpublish,代码行数:9,代码来源:ezimagetype_regression.php



注:本文中的ezpDatabaseTestCase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ezpEvent类代码示例发布时间:2022-05-23
下一篇:
PHP ezcWebdavServer类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap