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