Example #1
0
 /**
  * @test
  */
 public function loadExtCoreInDebugLoadsDebugExtCore()
 {
     $subject = new \TYPO3\CMS\Core\Page\PageRenderer();
     $expectedRegExp = '#<script src="contrib/extjs/ext-core-debug\\.(js|\\d+\\.js|js\\?\\d+)" type="text/javascript"></script>#';
     $subject->loadExtCore();
     $subject->enableExtCoreDebug();
     $out = $subject->render();
     $this->assertRegExp($expectedRegExp, $out);
 }
 /**
  * @test
  */
 public function loadExtJsInDebugLoadsDebugExtJs()
 {
     $subject = new \TYPO3\CMS\Core\Page\PageRenderer();
     $expectedRegExp = '#<script src="sysext/core/Resources/Public/JavaScript/Contrib/extjs/ext-all-debug\\.(js|\\d+\\.js|js\\?\\d+)" type="text/javascript"></script>#';
     $subject->loadExtJS(true, true);
     $subject->enableExtJsDebug();
     $out = $subject->render();
     $this->assertRegExp($expectedRegExp, $out);
 }