function DefaultFormatTest::testMultipleRoutesWithSameSingleFormat
Same name in other branches
- 8.9.x core/tests/Drupal/FunctionalTests/Routing/DefaultFormatTest.php \Drupal\FunctionalTests\Routing\DefaultFormatTest::testMultipleRoutesWithSameSingleFormat()
- 10 core/tests/Drupal/FunctionalTests/Routing/DefaultFormatTest.php \Drupal\FunctionalTests\Routing\DefaultFormatTest::testMultipleRoutesWithSameSingleFormat()
- 11.x core/tests/Drupal/FunctionalTests/Routing/DefaultFormatTest.php \Drupal\FunctionalTests\Routing\DefaultFormatTest::testMultipleRoutesWithSameSingleFormat()
File
-
core/
tests/ Drupal/ FunctionalTests/ Routing/ DefaultFormatTest.php, line 38
Class
- DefaultFormatTest
- @group routing
Namespace
Drupal\FunctionalTests\RoutingCode
public function testMultipleRoutesWithSameSingleFormat() {
$this->drupalGet('/default_format_test/machine');
$this->assertSame('format:json', $this->getSession()
->getPage()
->getContent());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.