function FieldUninstallValidatorTest::setUp
Same name in other branches
- 8.9.x core/modules/field/tests/src/Unit/FieldUninstallValidatorTest.php \Drupal\Tests\field\Unit\FieldUninstallValidatorTest::setUp()
- 10 core/modules/field/tests/src/Unit/FieldUninstallValidatorTest.php \Drupal\Tests\field\Unit\FieldUninstallValidatorTest::setUp()
- 11.x 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()
->onlyMethods([
'getFieldStoragesByModule',
'getFieldTypeLabel',
])
->getMock();
$this->fieldUninstallValidator
->setStringTranslation($this->getStringTranslationStub());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.