function FormStateDecoratorBaseTest::testIsRedirectDisabled
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testIsRedirectDisabled()
- 10 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testIsRedirectDisabled()
- 9 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testIsRedirectDisabled()
- 8.9.x core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testIsRedirectDisabled()
Tests is redirect disabled.
Attributes
#[DataProvider('providerSingleBooleanArgument')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 383
Class
Namespace
Drupal\Tests\Core\FormCode
public function testIsRedirectDisabled(bool $no_redirect) : void {
$this->decoratedFormState
->isRedirectDisabled()
->willReturn($no_redirect)
->shouldBeCalled();
$this->assertSame($no_redirect, $this->formStateDecoratorBase
->isRedirectDisabled());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.