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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
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
...
@@ -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
;
}
}
...
...
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