protected function ContentNegotiationRoutingTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php \Drupal\system\Tests\Routing\ContentNegotiationRoutingTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ src/ Tests/ Routing/ ContentNegotiationRoutingTest.php, line 30 - Contains \Drupal\system\Tests\Routing\ContentNegotiationRoutingTest.
Class
- ContentNegotiationRoutingTest
- Tests content negotiation routing variations.
Namespace
Drupal\system\Tests\RoutingCode
protected function setUp() {
\Drupal::unsetContainer();
parent::setUp();
$this
->installSchema('system', [
'router',
'url_alias',
]);
\Drupal::service('router.builder')
->rebuild();
}