protected function ViewsDataTest::viewsDataWithProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
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 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:
File
- core/
modules/ views/ tests/ src/ Unit/ ViewsDataTest.php, line 126 - Contains \Drupal\Tests\views\Unit\ViewsDataTest.
Class
- ViewsDataTest
- @coversDefaultClass \Drupal\views\ViewsData @group views
Namespace
Drupal\Tests\views\UnitCode
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;
}