function ConfigTest::setUpMockCacheTagsInvalidator
Reinitializes the route processor manager as a mock object.
3 calls to ConfigTest::setUpMockCacheTagsInvalidator()
- ConfigTest::testDelete in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - Tests delete.
- ConfigTest::testSaveExisting in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - Tests save existing.
- ConfigTest::testSaveNew in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - Tests save new.
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php, line 77
Class
- ConfigTest
- Tests the Config.
Namespace
Drupal\Tests\Core\ConfigCode
protected function setUpMockCacheTagsInvalidator() : void {
$this->cacheTagsInvalidator = $this->createMock(CacheTagsInvalidatorInterface::class);
\Drupal::getContainer()->set('cache_tags.invalidator', $this->cacheTagsInvalidator);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.