function FormStateDecoratorBaseTest::testSetRedirect
Tests set redirect.
@legacy-covers ::setRedirect
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 1370
Class
Namespace
Drupal\Tests\Core\FormCode
public function testSetRedirect() : void {
$route_name = 'foo';
$route_parameters = [
'bar' => 'baz',
];
$options = [
'qux' => 'foo',
];
$this->decoratedFormState
->setRedirect($route_name, $route_parameters, $options)
->shouldBeCalled();
$this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
->setRedirect($route_name, $route_parameters, $options));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.