function FormStateDecoratorBaseTest::testIsRebuilding

Tests is rebuilding.

@legacy-covers ::isRebuilding

Attributes

#[DataProvider('providerSingleBooleanArgument')]

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

public function testIsRebuilding($rebuild) : void {
  $this->decoratedFormState
    ->isRebuilding()
    ->willReturn($rebuild)
    ->shouldBeCalled();
  $this->assertSame($rebuild, $this->formStateDecoratorBase
    ->isRebuilding());
}

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