You are here

public function ResponseTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Response/ResponseTest.php, line 52

Class

ResponseTest
@coversDefaultClass \Drupal\payment\Response\Response

Namespace

Drupal\Tests\payment\Unit\Response

Code

public function setUp() : void {
  $this->routeName = $this
    ->randomMachineName();
  $this->redirectUrl = new Url($this->routeName);
  $this->symfonyResponse = $this
    ->getMockBuilder(SymfonyResponse::class)
    ->disableOriginalConstructor()
    ->getMock();
  $this->sut = new Response($this->redirectUrl, $this->symfonyResponse);
}