Skip to content

Commit

Permalink
Merge pull request ecamp#3750 from BacLuc/api-openapi-spec-snapshot
Browse files Browse the repository at this point in the history
Api openapi spec snapshot
  • Loading branch information
BacLuc authored Sep 30, 2023
2 parents a7b78e9 + ad46c9f commit 2fbdbbb
Show file tree
Hide file tree
Showing 2 changed files with 30,708 additions and 0 deletions.
17 changes: 17 additions & 0 deletions api/tests/Api/SnapshotTests/ResponseSnapshotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ public function testRootEndpointMatchesSnapshot() {
$this->assertMatchesResponseSnapshot($response);
}

public function testOpenApiSpecMatchesSnapshot() {
$response = static::createClientWithCredentials()
->request(
'GET',
'/docs.json',
[
'headers' => [
'accept' => 'application/json',
],
]
)
;

$this->assertResponseStatusCodeSame(200);
$this->assertMatchesResponseSnapshot($response);
}

/**
* @throws ClientExceptionInterface
* @throws DecodingExceptionInterface
Expand Down
Loading

0 comments on commit 2fbdbbb

Please sign in to comment.