Remove deprecated methods from test cases

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4777 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2007-04-05 04:39:46 +00:00
parent c81fd8b256
commit 08526db3f4

View file

@ -47,23 +47,6 @@ class HtmlHelperTest extends UnitTestCase {
ClassRegistry::addObject('view', $view);
}
function testSelectTag() {
@$result = $this->Html->selectTag('Model/field', array());
$this->assertPattern('/^<select [^<>]+>\n<option [^<>]+>/', $result);
$this->assertPattern('/<option value="" ><\/option>/', $result);
$this->assertPattern('/<\/select>$/', $result);
$this->assertPattern('/<select[^<>]+name="data\[Model\]\[field\]"[^<>]*>/', $result);
$this->assertPattern('/<select[^<>]+id="ModelField"[^<>]*>/', $result);
$this->Html->data = array('Model' => array('field' => 'value'));
@$result = $this->Html->selectTag('Model/field', array('value' => 'good', 'other' => 'bad'));
$this->assertPattern('/option value=""/', $result);
$this->assertPattern('/option value="value"/', $result);
$this->assertPattern('/option value="other"/', $result);
$this->assertPattern('/<\/option>\s+<option/', $result);
$this->assertPattern('/<\/option>\s+<\/select>/', $result);
}
function tearDown() {
unset($this->Html);
}