Drupal 8  8.0.2
ViewsDataTest Class Reference
Inheritance diagram for ViewsDataTest:

Public Member Functions

 testFetchBaseTables ()
 
 testGetOnFirstCall ()
 
 testFullAndTableGetCache ()
 
 testFullGetCache ()
 
 testSingleTableGetCache ()
 
 testNonExistingTableGetCache ()
 
 testCacheCallsWithSameTableMultipleTimes ()
 
 testCacheCallsWithSameTableMultipleTimesAndWarmCache ()
 
 testCacheCallsWithWarmCacheAndDifferentTable ()
 
 testCacheCallsWithWarmCacheAndInvalidTable ()
 
 testCacheCallsWithWarmCacheForInvalidTable ()
 
 testCacheCallsWithoutWarmCacheAndGetAllTables ()
 
 testCacheCallsWithWarmCacheAndGetAllTables ()
 
 testCacheCallsWithoutWarmCacheAndGetMultipleTables ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 viewsData ()
 
 viewsDataWithProvider ()
 
 setupMockedModuleHandler ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $cacheBackend
 
 $cacheTagsInvalidator
 
 $moduleHandler
 
 $configFactory
 
 $languageManager
 
 $viewsData
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

views

Member Function Documentation

setUp ( )
protected

{}

References Drupal\configFactory(), UnitTestCase\getConfigFactoryStub(), UnitTestCase\getContainerWithCacheTagsInvalidator(), Drupal\languageManager(), Drupal\moduleHandler(), and ViewsDataTest\viewsData().

Here is the call graph for this function:

setupMockedModuleHandler ( )
protected

Mocks the basic module handler used for the test.

Returns
|

References Drupal\moduleHandler(), and ViewsDataTest\viewsData().

Referenced by ViewsDataTest\testCacheCallsWithoutWarmCacheAndGetAllTables(), ViewsDataTest\testCacheCallsWithSameTableMultipleTimes(), ViewsDataTest\testFetchBaseTables(), ViewsDataTest\testFullGetCache(), ViewsDataTest\testGetOnFirstCall(), ViewsDataTest\testNonExistingTableGetCache(), and ViewsDataTest\testSingleTableGetCache().

Here is the call graph for this function:

Here is the caller graph for this function:

testCacheCallsWithoutWarmCacheAndGetAllTables ( )

Tests the cache calls for all views data without a warm cache.

References ViewsDataTest\setupMockedModuleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testCacheCallsWithoutWarmCacheAndGetMultipleTables ( )

Tests the cache calls for multiple tables without warm caches.

::get

References ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testCacheCallsWithSameTableMultipleTimes ( )

Tests the cache backend behavior with requesting the same table multiple

References ViewsDataTest\setupMockedModuleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testCacheCallsWithSameTableMultipleTimesAndWarmCache ( )

Tests the cache calls for a single table and warm cache for:

  • all tables
  • views_test_data

References Drupal\moduleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testCacheCallsWithWarmCacheAndDifferentTable ( )

Tests the cache calls for a different table than the one in cache:

Warm cache:

  • all tables
  • views_test_data Not warm cache:
  • views_test_data_2

References Drupal\moduleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testCacheCallsWithWarmCacheAndGetAllTables ( )

Tests the cache calls for all views data.

Warm cache:

  • all tables

References Drupal\moduleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testCacheCallsWithWarmCacheAndInvalidTable ( )

Tests the cache calls for an not existing table:

Warm cache:

  • all tables
  • views_test_data Not warm cache:
  • $non_existing_table

References Drupal\moduleHandler(), UnitTestCase\randomMachineName(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testCacheCallsWithWarmCacheForInvalidTable ( )

Tests the cache calls for an not existing table:

Warm cache:

  • all tables
  • views_test_data
  • $non_existing_table

References Drupal\moduleHandler(), UnitTestCase\randomMachineName(), and ViewsDataTest\viewsData().

Here is the call graph for this function:

testFetchBaseTables ( )

Tests the fetchBaseTables() method.

References ViewsDataTest\setupMockedModuleHandler(), and ViewsDataTest\viewsData().

Here is the call graph for this function:

testFullAndTableGetCache ( )

Tests the cache of the full and single table data.

References Drupal\moduleHandler(), UnitTestCase\randomMachineName(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testFullGetCache ( )

Tests the caching of the full views data.

References Drupal\moduleHandler(), ViewsDataTest\setupMockedModuleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testGetOnFirstCall ( )

Tests fetching all the views data without a static cache.

References Drupal\moduleHandler(), ViewsDataTest\setupMockedModuleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testNonExistingTableGetCache ( )

Tests building the views data with a non existing table.

References Drupal\moduleHandler(), UnitTestCase\randomMachineName(), ViewsDataTest\setupMockedModuleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:

testSingleTableGetCache ( )

Tests the caching of the views data for a specific table.

References Drupal\moduleHandler(), ViewsDataTest\setupMockedModuleHandler(), ViewsDataTest\viewsData(), and ViewsDataTest\viewsDataWithProvider().

Here is the call graph for this function:


The documentation for this class was generated from the following file: