composer update
This commit is contained in:
parent
f6abc3dce2
commit
71dfaca858
1753 changed files with 45274 additions and 14619 deletions
10
vendor/symfony/dom-crawler/Tests/FormTest.php
vendored
10
vendor/symfony/dom-crawler/Tests/FormTest.php
vendored
|
@ -400,6 +400,10 @@ class FormTest extends TestCase
|
|||
|
||||
$form = $this->createForm('<form><input type="text" name="foo" value="foo" disabled="disabled" /><input type="text" name="bar" value="bar" /><input type="submit" /></form>');
|
||||
$this->assertEquals(array('bar' => 'bar'), $form->getValues(), '->getValues() does not include disabled fields');
|
||||
|
||||
$form = $this->createForm('<form><template><input type="text" name="foo" value="foo" /></template><input type="text" name="bar" value="bar" /><input type="submit" /></form>');
|
||||
$this->assertEquals(array('bar' => 'bar'), $form->getValues(), '->getValues() does not include template fields');
|
||||
$this->assertFalse($form->has('foo'));
|
||||
}
|
||||
|
||||
public function testSetValues()
|
||||
|
@ -450,6 +454,10 @@ class FormTest extends TestCase
|
|||
|
||||
$form = $this->createForm('<form method="post"><input type="file" name="foo[bar]" disabled="disabled" /><input type="submit" /></form>');
|
||||
$this->assertEquals(array(), $form->getFiles(), '->getFiles() does not include disabled file fields');
|
||||
|
||||
$form = $this->createForm('<form method="post"><template><input type="file" name="foo"/></template><input type="text" name="bar" value="bar"/><input type="submit"/></form>');
|
||||
$this->assertEquals(array(), $form->getFiles(), '->getFiles() does not include template file fields');
|
||||
$this->assertFalse($form->has('foo'));
|
||||
}
|
||||
|
||||
public function testGetPhpFiles()
|
||||
|
@ -869,7 +877,7 @@ class FormTest extends TestCase
|
|||
protected function createForm($form, $method = null, $currentUri = null)
|
||||
{
|
||||
$dom = new \DOMDocument();
|
||||
$dom->loadHTML('<html>'.$form.'</html>');
|
||||
@$dom->loadHTML('<html>'.$form.'</html>');
|
||||
|
||||
$xPath = new \DOMXPath($dom);
|
||||
$nodes = $xPath->query('//input | //button');
|
||||
|
|
Reference in a new issue