function FormStateDecoratorBaseTest::testGetResponse

Tests get response.

@legacy-covers ::getResponse

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

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.