protected function PageManagerAdminTest::doTestAdminPath in Page Manager 8
Tests changing the admin theme of a page.
1 call to PageManagerAdminTest::doTestAdminPath()
- PageManagerAdminTest::testAdmin in page_manager_ui/
src/ Tests/ PageManagerAdminTest.php - Tests the Page Manager admin UI.
File
- page_manager_ui/
src/ Tests/ PageManagerAdminTest.php, line 459 - Contains \Drupal\page_manager_ui\Tests\PageManagerAdminTest.
Class
- PageManagerAdminTest
- Tests the admin UI for page entities.
Namespace
Drupal\page_manager_ui\TestsCode
protected function doTestAdminPath() {
$this
->config('system.theme')
->set('default', 'bartik')
->save();
$this
->drupalGet('admin/foo');
$this
->assertTheme('classy');
$this
->drupalGet('admin/structure/page_manager/manage/foo/general');
$edit = [
'use_admin_theme' => FALSE,
];
$this
->drupalPostForm(NULL, $edit, 'Update and save');
$this
->drupalGet('admin/foo');
$this
->assertTheme('bartik');
// Reset theme.
$this
->config('system.theme')
->set('default', 'classy')
->save();
}