protected function RequiredModuleUninstallValidatorTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php \Drupal\Tests\Core\Extension\RequiredModuleUninstallValidatorTest::setUp()
- 9 core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php \Drupal\Tests\Core\Extension\RequiredModuleUninstallValidatorTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ RequiredModuleUninstallValidatorTest.php, line 21
Class
- RequiredModuleUninstallValidatorTest
- @coversDefaultClass \Drupal\Core\Extension\RequiredModuleUninstallValidator @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
protected function setUp() : void {
parent::setUp();
$this->uninstallValidator = $this
->getMockBuilder('Drupal\\Core\\Extension\\RequiredModuleUninstallValidator')
->disableOriginalConstructor()
->onlyMethods([
'getModuleInfoByModule',
])
->getMock();
$this->uninstallValidator
->setStringTranslation($this
->getStringTranslationStub());
}