function FormStateDecoratorBaseTest::testGetResponse
Tests get response.
@legacy-covers ::getResponse
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 1355
Class
Namespace
Drupal\Tests\Core\FormCode
public function testGetResponse() : void {
$response = $this->createMock(Response::class);
$this->decoratedFormState
->getResponse()
->willReturn($response)
->shouldBeCalled();
$this->assertSame($response, $this->formStateDecoratorBase
->getResponse());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.