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