Exemplo n.º 1
0
 /**
  * @test
  */
 public function pageSetupInitiallyIsEmpty()
 {
     $pageId = $this->testingFramework->createFrontEndPage();
     self::assertSame(array(), $this->subject->retrievePageConfig($pageId));
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function templateConstantsAreUsedInTsSetup()
 {
     $pageId = $this->subject->createFrontEndPage();
     $this->subject->createTemplate($pageId, array('constants' => 'plugin.tx_oelib.test = 42', 'config' => 'plugin.tx_oelib.test = {$plugin.tx_oelib.test}'));
     $templateHelper = new Tx_Oelib_Tests_Unit_Fixtures_TestingTemplateHelper(array());
     $configuration = $templateHelper->retrievePageConfig($pageId);
     self::assertTrue(isset($configuration['test']));
     self::assertSame('42', $configuration['test']);
 }