From 2bb20ee63ac5e398cc64c432c0f93ea122d9d446 Mon Sep 17 00:00:00 2001 From: BacLuc Date: Sat, 24 Feb 2024 20:55:24 +0100 Subject: [PATCH] EndpointQueryCountTest: switch to ECampYamlSnapshotDriver --- api/tests/Api/SnapshotTests/EndpointQueryCountTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/tests/Api/SnapshotTests/EndpointQueryCountTest.php b/api/tests/Api/SnapshotTests/EndpointQueryCountTest.php index 644540f623..75e3727a91 100644 --- a/api/tests/Api/SnapshotTests/EndpointQueryCountTest.php +++ b/api/tests/Api/SnapshotTests/EndpointQueryCountTest.php @@ -3,6 +3,7 @@ namespace App\Tests\Api\SnapshotTests; use App\Tests\Api\ECampApiTestCase; +use App\Tests\Spatie\Snapshots\Driver\ECampYamlSnapshotDriver; use Hautelook\AliceBundle\PhpUnit\FixtureStore; use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; @@ -51,7 +52,7 @@ public function testNumberOfQueriesDidNotChangeForStableEndpoints() { $not200Responses = array_filter($responseCodes, fn ($value) => 200 != $value); assertThat($not200Responses, isEmpty()); - $this->assertMatchesSnapshot($numberOfQueries); + $this->assertMatchesSnapshot($numberOfQueries, new ECampYamlSnapshotDriver()); } /**