/**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->currentUserWorkspace = uniqid('user-', true);
     $this->currentGroupWorkspace = uniqid('group-', true);
     $this->setUpRootNodeAndRepository();
 }
 /**
  * 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'));
 }
 /**
  * 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'));
 }
 /**
  * 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');
 }
 public function setUp()
 {
     parent::setUp();
     $lock = new Lock('testLock');
     $this->lockFileName = $lock->getLockStrategy()->getLockFileName();
     $lock->release();
 }
Example #6
0
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->nodeDataRepository = new \TYPO3\TYPO3CR\Domain\Repository\NodeDataRepository();
     $this->contextFactory = $this->objectManager->get('TYPO3\\TYPO3CR\\Domain\\Service\\ContextFactoryInterface');
     $this->context = $this->contextFactory->create(array('workspaceName' => 'live'));
 }
Example #7
0
 /**
  */
 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');
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->persistenceManager instanceof \TYPO3\Flow\Persistence\Doctrine\PersistenceManager) {
         $this->markTestSkipped('Doctrine persistence is not enabled');
     }
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->nodeDataRepository = $this->objectManager->get(NodeDataRepository::class);
     $domainRepository = $this->objectManager->get(DomainRepository::class);
     $siteRepository = $this->objectManager->get(SiteRepository::class);
     $this->contextFactory = $this->objectManager->get(ContextFactoryInterface::class);
     $contextProperties = array('workspaceName' => 'live');
     $contentContext = $this->contextFactory->create($contextProperties);
     $siteImportService = $this->objectManager->get(SiteImportService::class);
     $siteImportService->importFromFile(__DIR__ . '/../Fixtures/NodeStructure.xml', $contentContext);
     $this->persistenceManager->persistAll();
     $currentDomain = $domainRepository->findOneByActiveRequest();
     if ($currentDomain !== null) {
         $contextProperties['currentSite'] = $currentDomain->getSite();
         $contextProperties['currentDomain'] = $currentDomain;
     } else {
         $contextProperties['currentSite'] = $siteRepository->findFirst();
     }
     $contentContext = $this->contextFactory->create($contextProperties);
     $this->contentContext = $contentContext;
     $this->propertyMapper = $this->objectManager->get(PropertyMapper::class);
     $this->baseNode = $this->contentContext->getCurrentSiteNode()->getNode('home');
     $this->linkingService = $this->objectManager->get(LinkingService::class);
     /** @var $requestHandler FunctionalTestRequestHandler */
     $requestHandler = self::$bootstrap->getActiveRequestHandler();
     $this->controllerContext = new ControllerContext(new ActionRequest($requestHandler->getHttpRequest()), $requestHandler->getHttpResponse(), new Arguments(array()), new UriBuilder());
 }
 /**
  * @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();
 }
 /**
  * @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');
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->currentTestWorkspaceName = uniqid('user-', TRUE);
     $this->setUpRootNodeAndRepository();
     $this->workspaceRepository = $this->objectManager->get('TYPO3\\TYPO3CR\\Domain\\Repository\\WorkspaceRepository');
     $this->liveWorkspace = $this->workspaceRepository->findOneByName('live');
 }
 /**
  * @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');
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!$this->persistenceManager instanceof PersistenceManager) {
         $this->markTestSkipped('Doctrine persistence is not enabled');
     }
     $this->entityRepository = new TimestampableRepository();
 }
 /**
  * @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);
 }
Example #16
0
 public function setUp()
 {
     parent::setUp();
     // inject persistence tester
     $this->persistenceTester = new \Econic\Testing\Tester\PersistenceTester($this);
     // inject entity factory
     $this->entityFactory = $this->objectManager->get('Econic\\Testing\\Factory\\EntityFactory');
 }
 /**
  * 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)));
 }
 public function setUp()
 {
     parent::setUp();
     $accountRepository = $this->objectManager->get('\\TYPO3\\Flow\\Security\\AccountRepository');
     $accountFactory = $this->objectManager->get('\\TYPO3\\Flow\\Security\\AccountFactory');
     $registrant = $accountFactory->createAccountWithPassword('functional_test_account', 'a_very_secure_long_password', array('T3DD.Backend:Authenticated'), 'HttpBasic');
     $accountRepository->add($registrant);
     $this->persistenceManager->persistAll();
 }
 /**
  *  Initialize recaptcha
  *
  *  @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->recaptcha = new \TYPO3\Recaptcha\Domain\Model\Recaptcha();
     $this->session = $this->objectManager->get('TYPO3\\Flow\\Session\\SessionInterface');
     if (!$this->session->isStarted()) {
         $this->session->start();
     }
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $route = new Route();
     $route->setName('Functional Test - Http::Client::InternalRequestEngine');
     $route->setUriPattern('test/security/restricted');
     $route->setDefaults(array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Security\\Fixtures', '@controller' => 'Restricted', '@action' => 'admin', '@format' => 'html'));
     $this->router->addRoute($route);
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $workspaceRepository = $this->objectManager->get(WorkspaceRepository::class);
     $workspaceRepository->add(new Workspace('live'));
     $this->persistenceManager->persistAll();
     $this->contextFactory = $this->objectManager->get(ContextFactoryInterface::class);
     $this->context = $this->contextFactory->create(array('workspaceName' => 'live'));
 }
 /**
  * Initializer
  */
 public function setUp()
 {
     parent::setUp();
     $route = new \TYPO3\Flow\Mvc\Routing\Route();
     $route->setUriPattern('test/form/simpleform/{formFactoryClassName}');
     $route->setDefaults(array('@package' => 'TYPO3.Form', '@subpackage' => 'Tests\\Functional\\Fixtures', '@controller' => 'Form', '@action' => 'index', '@format' => 'html'));
     $route->setAppendExceedingArguments(TRUE);
     $this->router->addRoute($route);
 }
 /**
  * Initializer
  */
 public function setUp()
 {
     parent::setUp();
     $route = new \TYPO3\Flow\Mvc\Routing\Route();
     $route->setUriPattern('test/fluid/formobjects(/{@action})');
     $route->setDefaults(array('@package' => 'TYPO3.Fluid', '@subpackage' => 'Tests\\Functional\\Form\\Fixtures', '@controller' => 'Form', '@action' => 'index', '@format' => 'html'));
     $route->setAppendExceedingArguments(true);
     $this->router->addRoute($route);
 }
 /**
  * @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 = new TestEntityRepository();
     $this->extendedTypesEntityRepository = new ExtendedTypesEntityRepository();
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $route = new Route();
     $route->setName('Functional Test - Session::SessionTest');
     $route->setUriPattern('test/session(/{@action})');
     $route->setDefaults(array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Session\\Fixtures', '@controller' => 'SessionTest', '@action' => 'sessionStart', '@format' => 'html'));
     $this->router->addRoute($route);
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $workspaceRepository = $this->objectManager->get('TYPO3\\TYPO3CR\\Domain\\Repository\\WorkspaceRepository');
     $workspaceRepository->add(new Workspace('live'));
     $this->persistenceManager->persistAll();
     $this->contextFactory = $this->objectManager->get('TYPO3\\TYPO3CR\\Domain\\Service\\ContextFactoryInterface');
     $this->context = $this->contextFactory->create(array('workspaceName' => 'live'));
 }
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     if (!extension_loaded('curl')) {
         $this->markTestSkipped('Curl extension was not available.');
     }
     $curlEngine = $this->objectManager->get('TYPO3\\Flow\\Http\\Client\\CurlEngine');
     $this->browser->setRequestEngine($curlEngine);
 }
 /**
  * @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::class);
     $this->registerRoute('post', 'test/validation/entity/{@action}', array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\Fixtures', '@controller' => 'Entity', '@format' => 'html'));
 }
 /**
  * Additional setup: Routes
  */
 public function setUp()
 {
     parent::setUp();
     $route = new Route();
     $route->setName('WidgetTest');
     $route->setUriPattern('test/widget/{@controller}(/{@action})');
     $route->setDefaults(array('@package' => 'TYPO3.Fluid', '@subpackage' => 'Tests\\Functional\\Core\\Fixtures', '@action' => 'index', '@format' => 'html'));
     $route->setAppendExceedingArguments(TRUE);
     $this->router->addRoute($route);
 }
 /**
  * Additional setup: Routes
  */
 public function setUp()
 {
     parent::setUp();
     $route = new Route();
     $route->setName('AbstractControllerTest Route 1');
     $route->setUriPattern('test/mvc/abstractcontrollertesta/{@action}');
     $route->setDefaults(array('@package' => 'TYPO3.Flow', '@subpackage' => 'Tests\\Functional\\Mvc\\Fixtures', '@controller' => 'AbstractControllerTestA', '@format' => 'html'));
     $route->setAppendExceedingArguments(true);
     $this->router->addRoute($route);
 }