You are here

protected function ViewTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 36
Contains \Drupal\Tests\views\Unit\Plugin\area\ViewTest.

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
    ->getMock('Drupal\\Core\\Entity\\EntityStorageInterface');
  $this->viewHandler = new ViewAreaPlugin(array(), 'view', array(), $this->entityStorage);
  $this->viewHandler->view = $this
    ->getMockBuilder('Drupal\\views\\ViewExecutable')
    ->disableOriginalConstructor()
    ->getMock();
}