From 8b2e2e6a7a39a9996aed2db2b96a75e288977a55 Mon Sep 17 00:00:00 2001 From: "mariano.iglesias" Date: Fri, 6 Apr 2007 19:12:15 +0000 Subject: [PATCH] Added test for #2361 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4809 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/helpers/html.test.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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);