function DrupalFlushAllCachesTest::register
Same name and namespace in other branches
- 10 core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php \Drupal\KernelTests\Core\Common\DrupalFlushAllCachesTest::register()
- 11.x core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php \Drupal\KernelTests\Core\Common\DrupalFlushAllCachesTest::register()
Registers test-specific services.
Extend this method in your test to register additional services. This method is called whenever the kernel is rebuilt.
Parameters
\Drupal\Core\DependencyInjection\ContainerBuilder $container: The service container to enhance.
Overrides KernelTestBase::register
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Common/ DrupalFlushAllCachesTest.php, line 66
Class
- DrupalFlushAllCachesTest
- @covers ::drupal_flush_all_caches @group Common
Namespace
Drupal\KernelTests\Core\CommonCode
public function register(ContainerBuilder $container) {
parent::register($container);
$this->containerBuilds++;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.