/**
  * @test
  */
 public function createFakeFrontEndWithTemplateRecordMarksTemplateAsLoaded()
 {
     $pageUid = $this->subject->createFrontEndPage();
     $this->subject->createTemplate($pageUid, array('config' => 'foo = 42'));
     $this->subject->createFakeFrontEnd($pageUid);
     self::assertSame(1, $this->getFrontEndController()->tmpl->loaded);
 }
 /**
  * @test
  */
 public function getAfterSetReturnsManuallySetConfigurationEvenIfThereIsAPage()
 {
     $pageUid = $this->testingFramework->createFrontEndPage();
     $this->testingFramework->createTemplate($pageUid, array('config' => 'plugin.tx_oelib.bar = 42'));
     Tx_Oelib_PageFinder::getInstance()->setPageUid($pageUid);
     $configuration = new Tx_Oelib_Configuration();
     Tx_Oelib_ConfigurationRegistry::getInstance()->set('plugin.tx_oelib', $configuration);
     self::assertSame($configuration, Tx_Oelib_ConfigurationRegistry::get('plugin.tx_oelib'));
 }