Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
e574f10c
Commit
e574f10c
authored
Oct 16, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed broken test after whitespace changes in view
parent
b476847b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
AssetBundleTest.php
tests/unit/framework/web/AssetBundleTest.php
+8
-16
No files found.
tests/unit/framework/web/AssetBundleTest.php
View file @
e574f10c
...
...
@@ -48,8 +48,7 @@ class AssetBundleTest extends \yiiunit\TestCase
$this
->
assertTrue
(
$view
->
assetBundles
[
'yiiunit\\framework\\web\\TestSimpleAsset'
]
instanceof
AssetBundle
);
$expected
=
<<<EOF
123<script src="/js/jquery.js"></script>
4
123<script src="/js/jquery.js"></script>4
EOF;
$this
->
assertEquals
(
$expected
,
$view
->
renderFile
(
'@yiiunit/data/views/rawlayout.php'
));
}
...
...
@@ -69,10 +68,8 @@ EOF;
$this
->
assertTrue
(
$view
->
assetBundles
[
'yiiunit\\framework\\web\\TestAssetLevel3'
]
instanceof
AssetBundle
);
$expected
=
<<<EOF
1<link href="/files/cssFile.css" rel="stylesheet">
23<script src="/js/jquery.js"></script>
<script src="/files/jsFile.js"></script>
4
1<link href="/files/cssFile.css" rel="stylesheet">23<script src="/js/jquery.js"></script>
<script src="/files/jsFile.js"></script>4
EOF;
$this
->
assertEquals
(
$expected
,
$view
->
renderFile
(
'@yiiunit/data/views/rawlayout.php'
));
}
...
...
@@ -129,25 +126,20 @@ EOF;
$expected
=
<<<EOF
1<link href="/files/cssFile.css" rel="stylesheet">
<script src="/js/jquery.js"></script>
<script src="/files/jsFile.js"></script>
234
<script src="/files/jsFile.js"></script>234
EOF;
break
;
case
View
::
POS_BEGIN
:
$expected
=
<<<EOF
1<link href="/files/cssFile.css" rel="stylesheet">
2<script src="/js/jquery.js"></script>
<script src="/files/jsFile.js"></script>
34
1<link href="/files/cssFile.css" rel="stylesheet">2<script src="/js/jquery.js"></script>
<script src="/files/jsFile.js"></script>34
EOF;
break
;
default
:
case
View
::
POS_END
:
$expected
=
<<<EOF
1<link href="/files/cssFile.css" rel="stylesheet">
23<script src="/js/jquery.js"></script>
<script src="/files/jsFile.js"></script>
4
1<link href="/files/cssFile.css" rel="stylesheet">23<script src="/js/jquery.js"></script>
<script src="/files/jsFile.js"></script>4
EOF;
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment