From a6d0b4b844bd50fc7f7ea7dcb6e6774750432cc8 Mon Sep 17 00:00:00 2001 From: nate Date: Thu, 8 Mar 2007 00:44:25 +0000 Subject: [PATCH] Fixing up test for HtmlHelper::selectTag() (Deprecated methods will still be tested until they are removed) git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4599 3807eeeb-6ff5-0310-8944-8be069107fe0 --- .../cases/libs/view/helpers/html.test.php | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/html.test.php b/cake/tests/cases/libs/view/helpers/html.test.php index 89eed2ea8..d5ffba104 100644 --- a/cake/tests/cases/libs/view/helpers/html.test.php +++ b/cake/tests/cases/libs/view/helpers/html.test.php @@ -46,14 +46,23 @@ class HtmlHelperTest extends UnitTestCase { $view = new View(new TheHtmlTestController()); ClassRegistry::addObject('view', $view); } - - /* commented out because selectTag is deprecated + function testSelectTag() { - $result = $this->html->selectTag('Model/field', array()); - $expected = ''; - $this->assertEqual($result, $expected, "Badness! Expected '{$expected}', got '{$result}'."); - }*/ - + @$result = $this->html->selectTag('Model/field', array()); + $this->assertPattern('/^