public function FormStateDecoratorBaseTest::testIsRebuilding in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testIsRebuilding()
@covers ::isRebuilding
@dataProvider providerSingleBooleanArgument
Parameters
bool $rebuild:
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 1398
Class
- FormStateDecoratorBaseTest
- @coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase
Namespace
Drupal\Tests\Core\FormCode
public function testIsRebuilding($rebuild) {
$this->decoratedFormState
->isRebuilding()
->willReturn($rebuild)
->shouldBeCalled();
$this
->assertSame($rebuild, $this->formStateDecoratorBase
->isRebuilding());
}