Skip to content

Commit

Permalink
EndpointQueryCountTest: switch to ECampYamlSnapshotDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
BacLuc committed Mar 2, 2024
1 parent 403b261 commit 2bb20ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/tests/Api/SnapshotTests/EndpointQueryCountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit 2bb20ee

Please sign in to comment.