protected function FieldUninstallValidatorTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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 28
Class
- FieldUninstallValidatorTest
- @coversDefaultClass \Drupal\field\FieldUninstallValidator @group field
Namespace
Drupal\Tests\field\UnitCode
protected function setUp() : void {
parent::setUp();
$this->fieldUninstallValidator = $this
->getMockBuilder('Drupal\\field\\FieldUninstallValidator')
->disableOriginalConstructor()
->setMethods([
'getFieldStoragesByModule',
'getFieldTypeLabel',
])
->getMock();
$this->fieldUninstallValidator
->setStringTranslation($this
->getStringTranslationStub());
}