public function RouterTest::testRouterResponsePsr7 in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Routing/RouterTest.php \Drupal\Tests\system\Functional\Routing\RouterTest::testRouterResponsePsr7()
- 9 core/modules/system/tests/src/Functional/Routing/RouterTest.php \Drupal\Tests\system\Functional\Routing\RouterTest::testRouterResponsePsr7()
Tests that a PSR-7 response works.
File
- core/
modules/ system/ tests/ src/ Functional/ Routing/ RouterTest.php, line 267
Class
- RouterTest
- Functional class for the full integrated routing system.
Namespace
Drupal\Tests\system\Functional\RoutingCode
public function testRouterResponsePsr7() {
$this
->drupalGet('/router_test/test23');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->pageTextContains('test23');
}