function FormStateDecoratorBaseTest::testIsRedirectDisabled

Tests is redirect disabled.

@legacy-covers ::isRedirectDisabled

Attributes

#[DataProvider('providerSingleBooleanArgument')]

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

public function testIsRedirectDisabled($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.