You are here

protected function RequiredModuleUninstallValidatorTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 29
Contains \Drupal\Tests\Core\Extension\RequiredModuleUninstallValidatorTest.

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());
}