function ExtensionStreamTest::testWrappersAfterThemeUninstall
Tests stream wrappers after theme uninstall.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ StreamWrapper/ ExtensionStreamTest.php, line 249
Class
- ExtensionStreamTest
- Tests extension stream wrappers.
Namespace
Drupal\KernelTests\Core\StreamWrapperCode
public function testWrappersAfterThemeUninstall() : void {
$this->assertSame('theme://claro', $this->streamWrappers['theme']
->dirname('theme://claro/claro.info.yml'));
$this->container
->get('theme_installer')
->uninstall([
'claro',
]);
$this->expectException(UnknownExtensionException::class);
$this->expectExceptionMessage('The theme claro does not exist.');
$this->streamWrappers['theme']
->dirname('theme://claro/claro.info.yml');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.