You are here

public function DisabledSchemaCacheTest::register in GraphQL 8.3

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/DisabledSchemaCacheTest.php, line 18

Class

DisabledSchemaCacheTest
Test schema caching.

Namespace

Drupal\Tests\graphql\Kernel\Framework

Code

public function register(ContainerBuilder $container) {
  parent::register($container);
  $config = $container
    ->getParameter('graphql.config');
  $container
    ->setParameter('graphql.config', [
    'development' => TRUE,
  ] + $config);
}