You are here

protected function ViewsDataTest::viewsDataWithProvider in Drupal 8

Returns the views data definition with the provider key.

Return value

array

See also

static::viewsData()

13 calls to ViewsDataTest::viewsDataWithProvider()
ViewsDataTest::testCacheCallsWithoutWarmCacheAndGetAllTables in core/modules/views/tests/src/Unit/ViewsDataTest.php
Tests the cache calls for all views data without a warm cache.
ViewsDataTest::testCacheCallsWithoutWarmCacheAndGetMultipleTables in core/modules/views/tests/src/Unit/ViewsDataTest.php
Tests the cache calls for multiple tables without warm caches.
ViewsDataTest::testCacheCallsWithSameTableMultipleTimes in core/modules/views/tests/src/Unit/ViewsDataTest.php
Tests the cache backend behavior with requesting the same table multiple
ViewsDataTest::testCacheCallsWithSameTableMultipleTimesAndWarmCache in core/modules/views/tests/src/Unit/ViewsDataTest.php
Tests the cache calls for a single table and warm cache for:
ViewsDataTest::testCacheCallsWithWarmCacheAndDifferentTable in core/modules/views/tests/src/Unit/ViewsDataTest.php
Tests the cache calls for a different table than the one in cache:

... See full list

File

core/modules/views/tests/src/Unit/ViewsDataTest.php, line 121

Class

ViewsDataTest
@coversDefaultClass \Drupal\views\ViewsData @group views

Namespace

Drupal\Tests\views\Unit

Code

protected function viewsDataWithProvider() {
  $views_data = static::viewsData();
  foreach (array_keys($views_data) as $table) {
    $views_data[$table]['table']['provider'] = 'views_test_data';
  }
  return $views_data;
}