function FormStateDecoratorBaseTest::testSetLimitValidationErrors

Tests set limit validation errors.

@legacy-covers ::setLimitValidationErrors

Attributes

#[DataProvider('providerLimitValidationErrors')]

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

public function testSetLimitValidationErrors($limit_validation_errors) : void {
  $this->decoratedFormState
    ->setLimitValidationErrors($limit_validation_errors)
    ->shouldBeCalled();
  $this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
    ->setLimitValidationErrors($limit_validation_errors));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.