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