You are here

protected function HandlerTestTrait::setupViewsData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupViewsData()

Sets up a mocked views data object.

2 calls to HandlerTestTrait::setupViewsData()
FieldTest::setUp in core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php
HandlerBaseTest::setUp in core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php

File

core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php, line 59
Contains \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait.

Class

HandlerTestTrait
Test trait to mock dependencies of a handler.

Namespace

Drupal\Tests\views\Unit\Plugin

Code

protected function setupViewsData() {
  $this->viewsData = $this
    ->getMockBuilder('Drupal\\views\\ViewsData')
    ->disableOriginalConstructor()
    ->getMock();
}