You are here

public function DefaultFormatTest::testMultipleRoutesWithSameSingleFormat in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Routing/DefaultFormatTest.php \Drupal\FunctionalTests\Routing\DefaultFormatTest::testMultipleRoutesWithSameSingleFormat()
  2. 9 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\Routing

Code

public function testMultipleRoutesWithSameSingleFormat() {
  $this
    ->drupalGet('/default_format_test/machine');
  $this
    ->assertSame('format:json', $this
    ->getSession()
    ->getPage()
    ->getContent());
}