Permalink
Browse files

Remove bogus test.

This test does nothing useful anymore. Remove it.
  • Loading branch information...
markstory committed Feb 17, 2014
1 parent cc89a7f commit e097d9780a85f6534270c39761eba01c2774f837
Showing with 0 additions and 22 deletions.
  1. +0 −22 tests/TestCase/View/Helper/FormHelperTest.php
@@ -3165,28 +3165,6 @@ public function testInputDatetime() {
$this->assertRegExp('/for\="created-month"/', $result);
}
-/**
- * Test generating checkboxes in a loop.
- *
- * @return void
- */
- public function testInputCheckboxesInLoop() {
- $this->markTestIncomplete('Need to revisit once models work again.');
- for ($i = 1; $i < 5; $i++) {
- $result = $this->Form->input("Contact.{$i}.email", array('type' => 'checkbox', 'value' => $i));
- $expected = array(
- 'div' => array('class' => 'input checkbox'),
- 'input' => array('type' => 'hidden', 'name' => "Contact[{$i}][email]", 'value' => '0', 'id' => "Contact{$i}Email_"),
- array('input' => array('type' => 'checkbox', 'name' => "Contact[{$i}][email]", 'value' => $i, 'id' => "Contact{$i}Email")),
- 'label' => array('for' => "Contact{$i}Email"),
- 'Email',
- '/label',
- '/div'
- );
- $this->assertTags($result, $expected);
- }
- }
-
/**
* Test generating checkboxes with disabled elements.
*

0 comments on commit e097d97

Please sign in to comment.