本文整理汇总了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();
}
示例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();
}
}
示例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'));
}
示例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']);
}
}
示例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');
}
示例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');
}
}
示例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');
}
示例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'));
}
示例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');
}
示例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');
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
示例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)));
}