Skip to content

Commit

Permalink
fix tests for enabled validation cache
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Aug 22, 2024
1 parent b3b42b0 commit c9a0453
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Integration/QueryCachingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function testEnabled(): void
{
$config = $this->app->make(ConfigRepository::class);
$config->set('lighthouse.query_cache.enable', true);
$config->set('lighthouse.validation_cache.enable', false);

Event::fake();

Expand Down Expand Up @@ -51,6 +52,7 @@ public function testDifferentQueriesHasDifferentKeys(): void
{
$config = $this->app->make(ConfigRepository::class);
$config->set('lighthouse.query_cache.enable', true);
$config->set('lighthouse.validation_cache.enable', false);

Event::fake();

Expand Down Expand Up @@ -84,6 +86,7 @@ public function testDisabled(): void
{
$config = $this->app->make(ConfigRepository::class);
$config->set('lighthouse.query_cache.enable', false);
$config->set('lighthouse.validation_cache.enable', false);

Event::fake();

Expand Down

0 comments on commit c9a0453

Please sign in to comment.