You are here

protected function RequiredModuleUninstallValidatorTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php \Drupal\Tests\Core\Extension\RequiredModuleUninstallValidatorTest::setUp()
  2. 10 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 24

Class

RequiredModuleUninstallValidatorTest
@coversDefaultClass \Drupal\Core\Extension\RequiredModuleUninstallValidator @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

protected function setUp() {
  parent::setUp();
  $this->uninstallValidator = $this
    ->getMockBuilder('Drupal\\Core\\Extension\\RequiredModuleUninstallValidator')
    ->disableOriginalConstructor()
    ->setMethods([
    'getModuleInfoByModule',
  ])
    ->getMock();
  $this->uninstallValidator
    ->setStringTranslation($this
    ->getStringTranslationStub());
}