You are here

public function RouterTest::testRouterResponsePsr7 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Routing/RouterTest.php \Drupal\system\Tests\Routing\RouterTest::testRouterResponsePsr7()

Tests that a PSR-7 response works.

File

core/modules/system/src/Tests/Routing/RouterTest.php, line 228
Contains \Drupal\system\Tests\Routing\RouterTest.

Class

RouterTest
Functional class for the full integrated routing system.

Namespace

Drupal\system\Tests\Routing

Code

public function testRouterResponsePsr7() {
  $this
    ->drupalGet('/router_test/test23');
  $this
    ->assertResponse(200);
  $this
    ->assertText('test23');
}