function FormStateDecoratorBaseTest::testClearErrors

Tests clear errors.

@legacy-covers ::clearErrors

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

public function testClearErrors() : void {
  $this->decoratedFormState
    ->clearErrors()
    ->shouldBeCalled();
  $this->formStateDecoratorBase
    ->clearErrors();
}

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