[Form] added some unit tests

This commit is contained in:
hlecorche 2011-11-22 10:31:25 +01:00 committed by Fabien Potencier
parent bb025bb904
commit 38f64a1bd9
1 changed files with 2 additions and 0 deletions

View File

@ -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"]
'
);