protected function ViewsDataTest::initViewsData

Initializes a new ViewsData instance and resets the cache backend.

2 calls to ViewsDataTest::initViewsData()
ViewsDataTest::setUp in drupal/core/modules/views/lib/Drupal/views/Tests/ViewsDataTest.php
Sets up Drupal unit test environment.
ViewsDataTest::testCacheRequests in drupal/core/modules/views/lib/Drupal/views/Tests/ViewsDataTest.php
Ensures that cache entries are only set and get when necessary.

File

drupal/core/modules/views/lib/Drupal/views/Tests/ViewsDataTest.php, line 232
Definition of Drupal\views\Tests\ViewsDataTest.

Class

ViewsDataTest
Tests the fetching of views data.

Namespace

Drupal\views\Tests

Code

protected function initViewsData() {
  $this->memoryCounterBackend
    ->resetCounter();
  $this->viewsData = new ViewsData($this->memoryCounterBackend, $this->container
    ->get('config.factory'), $this->container
    ->get('module_handler'));
}