function ViewsDataTest::viewsDataWithProvider

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/ViewsDataTest.php \Drupal\Tests\views\Unit\ViewsDataTest::viewsDataWithProvider()
  2. 8.9.x core/modules/views/tests/src/Unit/ViewsDataTest.php \Drupal\Tests\views\Unit\ViewsDataTest::viewsDataWithProvider()
  3. 11.x core/modules/views/tests/src/Unit/ViewsDataTest.php \Drupal\Tests\views\Unit\ViewsDataTest::viewsDataWithProvider()

Returns the views data definition with the provider key.

Return value

array

See also

static::viewsData()

12 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.
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 122

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.