Commit e574f10c by Carsten Brandt

fixed broken test after whitespace changes in view

parent b476847b
...@@ -48,8 +48,7 @@ class AssetBundleTest extends \yiiunit\TestCase ...@@ -48,8 +48,7 @@ class AssetBundleTest extends \yiiunit\TestCase
$this->assertTrue($view->assetBundles['yiiunit\\framework\\web\\TestSimpleAsset'] instanceof AssetBundle); $this->assertTrue($view->assetBundles['yiiunit\\framework\\web\\TestSimpleAsset'] instanceof AssetBundle);
$expected = <<<EOF $expected = <<<EOF
123<script src="/js/jquery.js"></script> 123<script src="/js/jquery.js"></script>4
4
EOF; EOF;
$this->assertEquals($expected, $view->renderFile('@yiiunit/data/views/rawlayout.php')); $this->assertEquals($expected, $view->renderFile('@yiiunit/data/views/rawlayout.php'));
} }
...@@ -69,10 +68,8 @@ EOF; ...@@ -69,10 +68,8 @@ EOF;
$this->assertTrue($view->assetBundles['yiiunit\\framework\\web\\TestAssetLevel3'] instanceof AssetBundle); $this->assertTrue($view->assetBundles['yiiunit\\framework\\web\\TestAssetLevel3'] instanceof AssetBundle);
$expected = <<<EOF $expected = <<<EOF
1<link href="/files/cssFile.css" rel="stylesheet"> 1<link href="/files/cssFile.css" rel="stylesheet">23<script src="/js/jquery.js"></script>
23<script src="/js/jquery.js"></script> <script src="/files/jsFile.js"></script>4
<script src="/files/jsFile.js"></script>
4
EOF; EOF;
$this->assertEquals($expected, $view->renderFile('@yiiunit/data/views/rawlayout.php')); $this->assertEquals($expected, $view->renderFile('@yiiunit/data/views/rawlayout.php'));
} }
...@@ -129,25 +126,20 @@ EOF; ...@@ -129,25 +126,20 @@ EOF;
$expected = <<<EOF $expected = <<<EOF
1<link href="/files/cssFile.css" rel="stylesheet"> 1<link href="/files/cssFile.css" rel="stylesheet">
<script src="/js/jquery.js"></script> <script src="/js/jquery.js"></script>
<script src="/files/jsFile.js"></script> <script src="/files/jsFile.js"></script>234
234
EOF; EOF;
break; break;
case View::POS_BEGIN: case View::POS_BEGIN:
$expected = <<<EOF $expected = <<<EOF
1<link href="/files/cssFile.css" rel="stylesheet"> 1<link href="/files/cssFile.css" rel="stylesheet">2<script src="/js/jquery.js"></script>
2<script src="/js/jquery.js"></script> <script src="/files/jsFile.js"></script>34
<script src="/files/jsFile.js"></script>
34
EOF; EOF;
break; break;
default: default:
case View::POS_END: case View::POS_END:
$expected = <<<EOF $expected = <<<EOF
1<link href="/files/cssFile.css" rel="stylesheet"> 1<link href="/files/cssFile.css" rel="stylesheet">23<script src="/js/jquery.js"></script>
23<script src="/js/jquery.js"></script> <script src="/files/jsFile.js"></script>4
<script src="/files/jsFile.js"></script>
4
EOF; EOF;
break; break;
} }
......
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