Skip to content

Commit 62df929

Browse files
committed
adding test for image in subdir and fullbase, closes #2534
1 parent c8eae93 commit 62df929

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,14 @@ public function testImageTag() {
349349

350350
$result = $this->Html->image('/test/view/1.gif');
351351
$this->assertTags($result, array('img' => array('src' => '/test/view/1.gif', 'alt' => '')));
352-
352+
353353
$result = $this->Html->image('test.gif', array('fullBase' => true));
354354
$here = $this->Html->url('/', true);
355355
$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' => '')));
356360
}
357361

358362
/**
@@ -684,7 +688,7 @@ public function testScriptWithBlocks() {
684688
$this->View->expects($this->at(1))
685689
->method('append')
686690
->with('script', $this->matchesRegularExpression('/bool_false.js/'));
687-
691+
688692
$this->View->expects($this->at(2))
689693
->method('append')
690694
->with('headScripts', $this->matchesRegularExpression('/second_script.js/'));

0 commit comments

Comments
 (0)