mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
c81fd8b256
commit
08526db3f4
1 changed files with 0 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue