protected function FieldUiTest::setUp in Drupal 10
Same name in this branch
- 10 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
- 10 core/modules/field/tests/src/Functional/Views/FieldUITest.php \Drupal\Tests\field\Functional\Views\FieldUITest::setUp()
Same name and namespace in other branches
- 8 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
- 9 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
File
- core/
modules/ field_ui/ tests/ src/ Unit/ FieldUiTest.php, line 26
Class
- FieldUiTest
- @coversDefaultClass \Drupal\field_ui\FieldUI
Namespace
Drupal\Tests\field_ui\UnitCode
protected function setUp() : void {
parent::setUp();
$this->pathValidator = $this
->createMock('Drupal\\Core\\Path\\PathValidatorInterface');
$container = new ContainerBuilder();
$container
->set('path.validator', $this->pathValidator);
\Drupal::setContainer($container);
}