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