You are here

protected function NegotiationMiddlewareTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\NegotiationMiddlewareTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php, line 35
Contains \Drupal\Tests\Core\StackMiddleware\NegotiationMiddlewareTest.

Class

NegotiationMiddlewareTest
@coversDefaultClass \Drupal\Core\StackMiddleware\NegotiationMiddleware @group NegotiationMiddleware

Namespace

Drupal\Tests\Core\StackMiddleware

Code

protected function setUp() : void {
  parent::setUp();
  $this->app = $this
    ->prophesize(HttpKernelInterface::class);
  $this->contentNegotiation = new StubNegotiationMiddleware($this->app
    ->reveal());
}