public function InstallProfileTest::testEnabledThemeInProfile in Helper 8
Tests switching from a profile which has an enabled theme inside it.
@covers ::validateProfile @covers ::checkEnabledProfileExtensions
File
- tests/
src/ Kernel/ InstallProfileTest.php, line 122
Class
- InstallProfileTest
- Tests the install profile helper.
Namespace
Drupal\Tests\helper\KernelCode
public function testEnabledThemeInProfile() {
$this
->setInstallProfile('demo_umami');
$this->container
->get('theme_installer')
->install([
'umami',
]);
$this
->expectException(InstallerException::class);
$this
->expectExceptionMessage("The following themes are located inside the current demo_umami profile and may not be available when switching to the minimal profile: umami.");
$this->installProfile
->validateProfile('minimal');
}