protected function SearchAdminThemeTest::assertAdminTheme in Drupal 9
Asserts whether an administrative theme's used for the loaded page.
Parameters
bool $is_admin: TRUE to test for administrative theme, FALSE otherwise.
1 call to SearchAdminThemeTest::assertAdminTheme()
- SearchAdminThemeTest::testSearchUsingAdminTheme in core/
modules/ search/ tests/ src/ Functional/ SearchAdminThemeTest.php - Tests that search results could be displayed in administration theme.
File
- core/
modules/ search/ tests/ src/ Functional/ SearchAdminThemeTest.php, line 97
Class
- SearchAdminThemeTest
- Verify the search results using administration theme for specific plugins.
Namespace
Drupal\Tests\search\FunctionalCode
protected function assertAdminTheme($is_admin) {
if ($is_admin) {
$this
->assertSession()
->responseContains('core/themes/' . $this->adminTheme);
}
else {
$this
->assertSession()
->responseNotContains('core/themes/' . $this->adminTheme);
}
}