当前位置: 首页>>代码示例>>PHP>>正文


PHP Tests\FunctionalTestCase类代码示例

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


在下文中一共展示了FunctionalTestCase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $lock = new Lock('testLock');
     $this->lockFileName = $lock->getLockStrategy()->getLockFileName();
     $lock->release();
 }
开发者ID:kszyma,项目名称:flow-development-collection,代码行数:7,代码来源:LockTest.php

示例2: tearDown

 /**
  * set to final because this is an important step which may not be overridden.
  */
 public final function tearDown()
 {
     parent::tearDown();
     if ($this->removeIndexOnTearDown === TRUE) {
         $this->testingIndex->delete();
     }
 }
开发者ID:johannessteu,项目名称:Flowpack.ElasticSearch,代码行数:10,代码来源:AbstractTest.php

示例3: setUp

 /**
  * Additional setup: Routes
  */
 public function setUp()
 {
     parent::setUp();
     $this->registerRoute('viewsconfigurationa', 'test/mvc/viewsconfigurationa(/{@action})', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\ViewsConfiguration\\Fixtures', '@controller' => 'ViewsConfigurationTestA', '@format' => 'html'));
     $this->registerRoute('viewsconfigurationb', 'test/mvc/viewsconfigurationb(/{@action})', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\ViewsConfiguration\\Fixtures', '@controller' => 'ViewsConfigurationTestB', '@action' => 'first', '@format' => 'html'));
     $this->registerRoute('viewsconfigurationc', 'test/mvc/viewsconfigurationc(/{@action})', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\ViewsConfiguration\\Fixtures', '@controller' => 'ViewsConfigurationTestC', '@action' => 'index', '@format' => 'html'));
 }
开发者ID:robertlemke,项目名称:flow-development-collection,代码行数:10,代码来源:ViewsConfigurationTest.php

示例4: tearDown

 /**
  * Clean up database after running tests
  */
 public function tearDown()
 {
     parent::tearDown();
     if (isset($this->documentManager)) {
         $this->documentManager->getHttpClient()->request('DELETE', '/' . $this->settings['databaseName']);
     }
 }
开发者ID:rfyio,项目名称:Radmiraal.CouchDB,代码行数:10,代码来源:AbstractFunctionalTest.php

示例5: setUp

 /**
  */
 public function setUp()
 {
     parent::setUp();
     $this->partyRepository = $this->objectManager->get('TYPO3\\Party\\Domain\\Repository\\PartyRepository');
     $this->accountRepository = $this->objectManager->get('TYPO3\\Flow\\Security\\AccountRepository');
     $this->accountFactory = $this->objectManager->get('TYPO3\\Flow\\Security\\AccountFactory');
 }
开发者ID:philippjbauer,项目名称:TYPO3.Party,代码行数:9,代码来源:PersonTest.php

示例6: setUp

 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->persistenceManager instanceof \TYPO3\Flow\Persistence\Doctrine\PersistenceManager) {
         $this->markTestSkipped('Doctrine persistence is not enabled');
     }
 }
开发者ID:sokunthearith,项目名称:Intern-Project-Week-2,代码行数:10,代码来源:IndexedCollectionTest.php

示例7: setUp

 /**
  * Additional setup: Repositories, security
  */
 public function setUp()
 {
     parent::setUp();
     $this->userRepository = $this->objectManager->get('_OurBrand_\\Quiz\\Domain\\Repository\\UserRepository');
     $this->quizRepository = $this->objectManager->get('_OurBrand_\\Quiz\\Domain\\Repository\\QuizRepository');
     //		$this->quizController = $this->objectManager->get('_OurBrand_\Quiz\Controller\QuizController');
 }
开发者ID:sdrech,项目名称:example_quiz,代码行数:10,代码来源:QuizControllerTest.php

示例8: setUp

 /**
  * Additional setup: Routes
  */
 public function setUp()
 {
     parent::setUp();
     $this->registerRoute('testa', 'test/mvc/actioncontrollertesta(/{@action})', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\Fixtures', '@controller' => 'ActionControllerTestA', '@action' => 'first', '@format' => 'html'));
     $this->registerRoute('testb', 'test/mvc/actioncontrollertestb(/{@action})', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\Fixtures', '@controller' => 'ActionControllerTestB', '@format' => 'html'));
     $this->registerRoute('testc', 'test/mvc/actioncontrollertestc/{entity}', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\Fixtures', '@controller' => 'Entity', '@action' => 'show', '@format' => 'html'));
 }
开发者ID:nlx-sascha,项目名称:flow-development-collection,代码行数:10,代码来源:ActionControllerTest.php

示例9: setUp

 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->persistenceManager instanceof \TYPO3\Flow\Persistence\Doctrine\PersistenceManager) {
         $this->markTestSkipped('Doctrine persistence is not enabled');
     }
     $this->testEntityRepository = $this->objectManager->get('TYPO3\\Flow\\Tests\\Functional\\Persistence\\Fixtures\\TestEntityRepository');
 }
开发者ID:sokunthearith,项目名称:Intern-Project-Week-2,代码行数:11,代码来源:LazyLoadingTest.php

示例10: setUp

 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->persistenceManager instanceof PersistenceManager) {
         $this->markTestSkipped('Doctrine persistence is not enabled');
     }
     $this->resourceManager = $this->objectManager->get('TYPO3\\Flow\\Resource\\ResourceManager');
 }
开发者ID:fcool,项目名称:flow-development-collection,代码行数:11,代码来源:ResourceTest.php

示例11: setUp

 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->persistenceManager instanceof PersistenceManager) {
         $this->markTestSkipped('Doctrine persistence is not enabled');
     }
     $this->entityRepository = new TimestampableRepository();
 }
开发者ID:sixty-nine,项目名称:CDSRC.Libraries,代码行数:11,代码来源:TimestampableTest.php

示例12: setUp

 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->persistenceManager instanceof \TYPO3\Flow\Persistence\Doctrine\PersistenceManager) {
         $this->markTestSkipped('Doctrine persistence is not enabled');
     }
     $this->postRepository = $this->objectManager->get(\TYPO3\Flow\Tests\Functional\Persistence\Fixtures\PostRepository::class);
 }
开发者ID:kszyma,项目名称:flow-development-collection,代码行数:11,代码来源:UniqueEntityValidatorTest.php

示例13: setUp

 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->persistenceManager instanceof \TYPO3\Flow\Persistence\Doctrine\PersistenceManager) {
         $this->markTestSkipped('Doctrine persistence is not enabled');
     }
     $this->restrictableEntityRepository = new Fixtures\RestrictableEntityRepository();
 }
开发者ID:sokunthearith,项目名称:Intern-Project-Week-2,代码行数:11,代码来源:ContentSecurityTest.php

示例14: runBare

 /**
  * Every testcase should run *twice*. First, it is run in *uncached* way, second,
  * it is run *cached*. To make sure that the first run is always uncached, the
  * $standaloneViewNonce is initialized to some random value which is used inside
  * an overridden version of StandaloneView::createIdentifierForFile.
  */
 public function runBare()
 {
     $this->standaloneViewNonce = uniqid();
     parent::runBare();
     $numberOfAssertions = $this->getNumAssertions();
     parent::runBare();
     $this->addToAssertionCount($numberOfAssertions);
 }
开发者ID:cerlestes,项目名称:flow-development-collection,代码行数:14,代码来源:StandaloneViewTest.php

示例15: setUp

 /**
  * Additional setup: Routes
  */
 public function setUp()
 {
     parent::setUp();
     $this->registerRoute('testa', 'test/mvc/actioncontrollertesta(/{@action})', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\Fixtures', '@controller' => 'ActionControllerTestA', '@action' => 'first', '@format' => 'html'));
     $this->registerRoute('testb', 'test/mvc/actioncontrollertestb(/{@action})', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\Fixtures', '@controller' => 'ActionControllerTestB', '@format' => 'html'));
     $route = $this->registerRoute('testc', 'test/mvc/actioncontrollertestc/{entity}(/{@action})', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\Fixtures', '@controller' => 'Entity', '@action' => 'show', '@format' => 'html'));
     $route->setRoutePartsConfiguration(array('entity' => array('objectType' => TestEntity::class)));
 }
开发者ID:cerlestes,项目名称:flow-development-collection,代码行数:11,代码来源:ActionControllerTest.php


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