You are here

protected function FieldUiTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
  2. 8 core/modules/field/src/Tests/Views/FieldUITest.php \Drupal\field\Tests\Views\FieldUITest::setUp()
Same name and namespace in other branches
  1. 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\Unit

Code

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);
}