function FormStateDecoratorBaseTest::testSetValidationEnforced

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testSetValidationEnforced()
  2. 8.9.x core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testSetValidationEnforced()
  3. 11.x core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testSetValidationEnforced()

@covers ::setValidationEnforced

@dataProvider providerSingleBooleanArgument

File

core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php, line 361

Class

FormStateDecoratorBaseTest
@coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase

Namespace

Drupal\Tests\Core\Form

Code

public function testSetValidationEnforced($must_validate) : void {
    $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.