function ViewsDataTest::setUpMockModuleHandler
Reinitializes the module handler as a mock object.
9 calls to ViewsDataTest::setUpMockModuleHandler()
- ViewsDataTest::setUpMockModuleHandlerWithExpectation in core/
modules/ views/ tests/ src/ Unit/ ViewsDataTest.php - Reinitializes the module handler as a mock object with an expectation.
- 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.
- ViewsDataTest::testCacheCallsWithWarmCacheAndGetAllTables in core/
modules/ views/ tests/ src/ Unit/ ViewsDataTest.php - Tests the cache calls for all views data.
- ViewsDataTest::testCacheCallsWithWarmCacheAndInvalidTable in core/
modules/ views/ tests/ src/ Unit/ ViewsDataTest.php - Tests the cache calls for a non-existent table.
File
-
core/
modules/ views/ tests/ src/ Unit/ ViewsDataTest.php, line 84
Class
Namespace
Drupal\Tests\views\UnitCode
protected function setUpMockModuleHandler() : void {
$this->moduleHandler = $this->createMock(ModuleHandlerInterface::class);
$reflection = new \ReflectionProperty($this->viewsData, 'moduleHandler');
$reflection->setValue($this->viewsData, $this->moduleHandler);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.