function FormStateDecoratorBaseTest::testSetValidationEnforced
@covers ::setValidationEnforced
@dataProvider providerSingleBooleanArgument
Parameters
bool $must_validate:
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 391
Class
- FormStateDecoratorBaseTest
- @coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase[[api-linebreak]]
Namespace
Drupal\Tests\Core\FormCode
public function testSetValidationEnforced($must_validate) {
$this->decoratedFormState
->setValidationEnforced($must_validate)
->shouldBeCalled();
$this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
->setValidationEnforced($must_validate));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.