public function ModuleRequiredByThemesUninstallValidatorTest::testValidateNoThemeDependency in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php \Drupal\Tests\Core\Extension\ModuleRequiredByThemesUninstallValidatorTest::testValidateNoThemeDependency()
- 9 core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php \Drupal\Tests\Core\Extension\ModuleRequiredByThemesUninstallValidatorTest::testValidateNoThemeDependency()
@covers ::validate
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ModuleRequiredByThemesUninstallValidatorTest.php, line 50
Class
- ModuleRequiredByThemesUninstallValidatorTest
- @coversDefaultClass \Drupal\Core\Extension\ModuleRequiredByThemesUninstallValidator @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
public function testValidateNoThemeDependency() {
$this->themeExtensionList
->getAllInstalledInfo()
->willReturn([
'stable' => [
'name' => 'Stable',
'dependencies' => [],
],
'claro' => [
'name' => 'Claro',
'dependencies' => [],
],
]);
$module = $this
->randomMachineName();
$expected = [];
$reasons = $this->moduleRequiredByThemeUninstallValidator
->validate($module);
$this
->assertSame($expected, $reasons);
}