public function DisabledResultCacheTest::register in GraphQL 8.4
Same name and namespace in other branches
- 8.3 tests/src/Kernel/Framework/DisabledResultCacheTest.php \Drupal\Tests\graphql\Kernel\Framework\DisabledResultCacheTest::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
See also
\Drupal\Tests\KernelTestBase::bootKernel()
File
- tests/
src/ Kernel/ Framework/ DisabledResultCacheTest.php, line 34
Class
- DisabledResultCacheTest
- Test disabled result cache.
Namespace
Drupal\Tests\graphql\Kernel\FrameworkCode
public function register(ContainerBuilder $container) : void {
parent::register($container);
// Set the development parameter to TRUE.
$parameters = $container
->getParameter('graphql.config');
$parameters['development'] = TRUE;
$container
->setParameter('graphql.config', $parameters);
}