diff --git a/cake/tests/cases/libs/view/helpers/html.test.php b/cake/tests/cases/libs/view/helpers/html.test.php index 55128d7ff..a649561dd 100644 --- a/cake/tests/cases/libs/view/helpers/html.test.php +++ b/cake/tests/cases/libs/view/helpers/html.test.php @@ -42,10 +42,17 @@ class HtmlHelperTest extends UnitTestCase { var $html = null; function setUp() { - $this->Html = new HtmlHelper(); - $view = new View(new TheHtmlTestController()); + $this->Html =& new HtmlHelper(); + $view =& new View(new TheHtmlTestController()); ClassRegistry::addObject('view', $view); } + + function testImageLink() { + $result = $this->Html->link($this->Html->image('test.gif'), '#', array(), false, false, false); + $expected = '/^<\/a>$/'; + + $this->assertPattern($expected, $result); + } function tearDown() { unset($this->Html);