public function FormTest::testSetValues in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Tests/FormTest.php \Symfony\Component\DomCrawler\Tests\FormTest::testSetValues()
File
- vendor/
symfony/ dom-crawler/ Tests/ FormTest.php, line 410
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testSetValues() {
$form = $this
->createForm('<form><input type="checkbox" name="foo" value="foo" checked="checked" /><input type="text" name="bar" value="bar" /><input type="submit" /></form>');
$form
->setValues(array(
'foo' => false,
'bar' => 'foo',
));
$this
->assertEquals(array(
'bar' => 'foo',
), $form
->getValues(), '->setValues() sets the values of fields');
}