function MenuRouterTestCase::testThemeCallbackAdministrative

Test the theme callback when it is set to use an administrative theme.

File

modules/simpletest/tests/menu.test, line 167

Class

MenuRouterTestCase

Code

function testThemeCallbackAdministrative() {
    $this->drupalGet('menu-test/theme-callback/use-admin-theme');
    $this->assertText('Custom theme: seven. Actual theme: seven.', 'The administrative theme can be correctly set in a theme callback.');
    $this->assertRaw('seven/style.css', "The administrative theme's CSS appears on the page.");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.