You are here

public function FormTest::testRemove in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dom-crawler/Tests/FormTest.php \Symfony\Component\DomCrawler\Tests\FormTest::testRemove()

File

vendor/symfony/dom-crawler/Tests/FormTest.php, line 631

Class

FormTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testRemove() {
  $form = $this
    ->createForm('<form method="post"><input type="text" name="bar" value="bar" /><input type="submit" /></form>');
  $form
    ->remove('bar');
  $this
    ->assertFalse($form
    ->has('bar'), '->remove() removes a field');
}