You are here

protected function ViewTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php \Drupal\Tests\views\Unit\Plugin\area\ViewTest::setUp()
  2. 10 core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php \Drupal\Tests\views\Unit\Plugin\area\ViewTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php, line 31

Class

ViewTest
@coversDefaultClass \Drupal\views\Plugin\views\area\View @group views

Namespace

Drupal\Tests\views\Unit\Plugin\area

Code

protected function setUp() {
  parent::setUp();
  $this->entityStorage = $this
    ->createMock('Drupal\\Core\\Entity\\EntityStorageInterface');
  $this->viewHandler = new ViewAreaPlugin([], 'view', [], $this->entityStorage);
  $this->viewHandler->view = $this
    ->getMockBuilder('Drupal\\views\\ViewExecutable')
    ->disableOriginalConstructor()
    ->getMock();
}