You are here

public function DisabledResultCacheTest::register in GraphQL 8.3

Same name and namespace in other branches
  1. 8.4 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 GraphQLTestBase::register

See also

\Drupal\Tests\KernelTestBase::bootKernel()

File

tests/src/Kernel/Framework/DisabledResultCacheTest.php, line 19

Class

DisabledResultCacheTest
Test disabled result cache.

Namespace

Drupal\Tests\graphql\Kernel\Framework

Code

public function register(ContainerBuilder $container) {
  parent::register($container);

  // Set the development parameter to TRUE.
  $parameters = $container
    ->getParameter('graphql.config');
  $parameters['development'] = TRUE;
  $container
    ->setParameter('graphql.config', $parameters);
}