protected function MenuRouterTest::doTestThemeCallbackNoThemeRequested in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestThemeCallbackNoThemeRequested()
- 10 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestThemeCallbackNoThemeRequested()
Tests the theme negotiation when no theme is requested.
1 call to MenuRouterTest::doTestThemeCallbackNoThemeRequested()
- MenuRouterTest::testThemeIntegration in core/
modules/ system/ tests/ src/ Functional/ Menu/ MenuRouterTest.php - Tests theme integration.
File
- core/
modules/ system/ tests/ src/ Functional/ Menu/ MenuRouterTest.php, line 335
Class
- MenuRouterTest
- Tests menu router and default menu link functionality.
Namespace
Drupal\Tests\system\Functional\MenuCode
protected function doTestThemeCallbackNoThemeRequested() {
$this
->drupalGet('menu-test/theme-callback/no-theme-requested');
$this
->assertSession()
->pageTextContains('Active theme: bartik. Actual theme: bartik.');
// Check that the default theme's CSS appears on the page.
$this
->assertSession()
->responseContains('bartik/css/base/elements.css');
}