Skip to content

Commit

Permalink
Add two new tests to FormHelperTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-urdin committed Jul 29, 2016
1 parent e9af645 commit 5902079
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -3679,6 +3679,28 @@ public function testInputMagicSelectForTypeNumber()
$this->assertHtml($expected, $result);
}

/**
* Test invalid 'input' type option to input() function.
*
* @expectedException \RuntimeException
* @return void
*/
public function testInvalidInputTypeOptionLowercase()
{
$this->Form->input('text', ['type' => 'input']);
}

/**
* Test invalid 'Input' type option to input() function.
*
* @expectedException \RuntimeException
* @return void
*/
public function testInvalidInputTypeOptionUppercase()
{
$this->Form->input('text', ['type' => 'Input']);
}

/**
* Test that magic input() selects can easily be converted into radio types without error.
*
Expand Down

0 comments on commit 5902079

Please sign in to comment.