File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
lib/Cake/Test/Case/View/Helper Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -349,10 +349,14 @@ public function testImageTag() {
349
349
350
350
$ result = $ this ->Html ->image ('/test/view/1.gif ' );
351
351
$ this ->assertTags ($ result , array ('img ' => array ('src ' => '/test/view/1.gif ' , 'alt ' => '' )));
352
-
352
+
353
353
$ result = $ this ->Html ->image ('test.gif ' , array ('fullBase ' => true ));
354
354
$ here = $ this ->Html ->url ('/ ' , true );
355
355
$ this ->assertTags ($ result , array ('img ' => array ('src ' => $ here . 'img/test.gif ' , 'alt ' => '' )));
356
+
357
+ $ result = $ this ->Html ->image ('sub/test.gif ' , array ('fullBase ' => true ));
358
+ $ here = $ this ->Html ->url ('/ ' , true );
359
+ $ this ->assertTags ($ result , array ('img ' => array ('src ' => $ here . 'img/sub/test.gif ' , 'alt ' => '' )));
356
360
}
357
361
358
362
/**
@@ -684,7 +688,7 @@ public function testScriptWithBlocks() {
684
688
$ this ->View ->expects ($ this ->at (1 ))
685
689
->method ('append ' )
686
690
->with ('script ' , $ this ->matchesRegularExpression ('/bool_false.js/ ' ));
687
-
691
+
688
692
$ this ->View ->expects ($ this ->at (2 ))
689
693
->method ('append ' )
690
694
->with ('headScripts ' , $ this ->matchesRegularExpression ('/second_script.js/ ' ));
You can’t perform that action at this time.
0 commit comments