Skip to content
Permalink
Browse files

Added test case

  • Loading branch information...
lilHermit committed Jan 24, 2017
1 parent 446add8 commit 75a92ba64d31a1bd99a3cbdb11adb97e7ad43c64
Showing with 25 additions and 0 deletions.
  1. +25 −0 tests/TestCase/View/Helper/FormHelperTest.php
@@ -8473,4 +8473,29 @@ public function testAutoDomId()
];
$this->assertHtml($expected, $result);
}
/**
* testNestedLabelInput method
*
* Test the `nestedInput` parameter
*
* @return void
*/
public function testNestedLabelInput()
{
$result = $this->Form->input('foo', [ 'nestedInput' => true]);
$expected = [
'div' => ['class' => 'input text'],
'label' => ['for' => 'foo'],
['input' => [
'type' => 'text',
'name' => 'foo',
'id' => 'foo'
]],
'Foo',
'/label',
'/div'
];
$this->assertHtml($expected, $result);
}
}

0 comments on commit 75a92ba

Please sign in to comment.
You can’t perform that action at this time.