Commit 4f0d10c6 by Carsten Brandt

fixed test break

parent 6744228e
...@@ -56,7 +56,7 @@ class ViewRendererTest extends TestCase ...@@ -56,7 +56,7 @@ class ViewRendererTest extends TestCase
$view = $this->mockView(); $view = $this->mockView();
$content = $view->renderFile('@yiiunit/extensions/smarty/views/layout.tpl'); $content = $view->renderFile('@yiiunit/extensions/smarty/views/layout.tpl');
$this->assertEquals(1, preg_match('#<script src="/assets/[0-9a-z]+/dist/jquery\\.js"></script>\s*</body>#', $content), 'Content does not contain the jquery js:' . $content); $this->assertEquals(1, preg_match('#<script src="/assets/[0-9a-z]+/jquery\\.js"></script>\s*</body>#', $content), 'Content does not contain the jquery js:' . $content);
} }
......
...@@ -39,7 +39,7 @@ class ViewRendererTest extends DatabaseTestCase ...@@ -39,7 +39,7 @@ class ViewRendererTest extends DatabaseTestCase
$view = $this->mockView(); $view = $this->mockView();
$content = $view->renderFile('@yiiunit/extensions/twig/views/layout.twig'); $content = $view->renderFile('@yiiunit/extensions/twig/views/layout.twig');
$this->assertEquals(1, preg_match('#<script src="/assets/[0-9a-z]+/dist/jquery\\.js"></script>\s*</body>#', $content), 'Content does not contain the jquery js:' . $content); $this->assertEquals(1, preg_match('#<script src="/assets/[0-9a-z]+/jquery\\.js"></script>\s*</body>#', $content), 'Content does not contain the jquery js:' . $content);
} }
public function testAppGlobal() public function testAppGlobal()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment