function SearchAdminThemeTest::assertAdminTheme
Same name in other branches
- 9 core/modules/search/tests/src/Functional/SearchAdminThemeTest.php \Drupal\Tests\search\Functional\SearchAdminThemeTest::assertAdminTheme()
- 10 core/modules/search/tests/src/Functional/SearchAdminThemeTest.php \Drupal\Tests\search\Functional\SearchAdminThemeTest::assertAdminTheme()
Asserts whether an administrative theme's used for the loaded page.
@internal
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 109
Class
- SearchAdminThemeTest
- Verify the search results using administration theme for specific plugins.
Namespace
Drupal\Tests\search\FunctionalCode
protected function assertAdminTheme(bool $is_admin) : void {
if ($is_admin) {
$this->assertSession()
->responseContains('core/themes/' . $this->adminTheme);
}
else {
$this->assertSession()
->responseNotContains('core/themes/' . $this->adminTheme);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.