You are here

protected function FieldUninstallValidatorTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field/tests/src/Unit/FieldUninstallValidatorTest.php \Drupal\Tests\field\Unit\FieldUninstallValidatorTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/field/tests/src/Unit/FieldUninstallValidatorTest.php, line 31

Class

FieldUninstallValidatorTest
@coversDefaultClass \Drupal\field\FieldUninstallValidator @group field

Namespace

Drupal\Tests\field\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->fieldUninstallValidator = $this
    ->getMockBuilder('Drupal\\field\\FieldUninstallValidator')
    ->disableOriginalConstructor()
    ->setMethods([
    'getFieldStoragesByModule',
    'getFieldTypeLabel',
  ])
    ->getMock();
  $this->fieldUninstallValidator
    ->setStringTranslation($this
    ->getStringTranslationStub());
}