[Form] added some unit tests
This commit is contained in:
parent
bb025bb904
commit
38f64a1bd9
@ -1491,11 +1491,13 @@ abstract class AbstractLayoutTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$form = $this->factory->createNamed('textarea', 'na&me', 'foo&bar', array(
|
||||
'property_path' => 'name',
|
||||
'pattern' => 'foo',
|
||||
));
|
||||
|
||||
$this->assertWidgetMatchesXpath($form->createView(), array(),
|
||||
'/textarea
|
||||
[@name="na&me"]
|
||||
[not(@pattern)]
|
||||
[.="foo&bar"]
|
||||
'
|
||||
);
|
||||
|
Reference in New Issue
Block a user