You are here

protected function FieldsTest::setUp in Layout Plugin Views 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/FieldsTest.php \Drupal\Tests\layout_plugin_views\Unit\FieldsTest::setUp()

File

tests/src/Unit/FieldsTest.php, line 39

Class

FieldsTest
@coversDefaultClass \Drupal\layout_plugin_views\Plugin\views\row\Fields @group Panels

Namespace

Drupal\Tests\layout_plugin_views\Unit

Code

protected function setUp() {
  $this->container = $this
    ->getMockForAbstractClass(ContainerInterface::class);
  $this->container
    ->method('get')
    ->willReturnCallback([
    $this,
    'containerGetCallback',
  ]);
  \Drupal::setContainer($this->container);
  $this
    ->initializeSubjectUnderTest([], TRUE);
}