Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#82: Moved status api out of versioning routes #83

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

ulin-evgeny
Copy link
Contributor

No description provided.

@ulin-evgeny ulin-evgeny requested a review from DenTray June 3, 2024 10:20
@ulin-evgeny ulin-evgeny assigned DenTray and ulin-evgeny and unassigned DenTray Jun 3, 2024
@ulin-evgeny ulin-evgeny force-pushed the 82-moved-status-api-out-of-versioning-routes branch from b056dcc to e98d178 Compare June 3, 2024 10:42
@ulin-evgeny ulin-evgeny assigned DenTray and unassigned ulin-evgeny Jun 3, 2024
@@ -10,7 +10,7 @@ class StatusTest extends TestCase
{
public function testStatusOk()
{
$response = $this->json('get', '/status');
$response = $this->json('get', '/status', [], [], 0, false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$response = $this->json('get', '/status', [], [], 0, false);
$response = $this->get('/status');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -23,7 +23,7 @@ public function testStatusServiceUnavailable()
DB::shouldReceive('connection')->andReturn($connection);
DB::shouldReceive('getPdo')->andThrow(Exception::class);

$response = $this->json('get', '/status');
$response = $this->json('get', '/status', [], [], 0, false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$response = $this->json('get', '/status', [], [], 0, false);
$response = $this->get('/status');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -67,10 +67,13 @@ public function call($method, $uri, $parameters = [], $cookies = [], $files = []
return parent::call($method, $uri, $parameters, $cookies, $files, $server, $content);
}

public function json($method, $uri, array $data = [], array $headers = [], $options = 0, ?VersionEnum $apiVersion = null): TestResponse
public function json($method, $uri, array $data = [], array $headers = [], $options = 0, VersionEnum|bool|null $apiVersion = null): TestResponse
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use get method for the status tests instead of extending json method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@DenTray DenTray assigned ulin-evgeny and unassigned DenTray Jun 4, 2024
@ulin-evgeny ulin-evgeny assigned DenTray and unassigned ulin-evgeny Jun 4, 2024
@DenTray DenTray merged commit 9ad43b2 into development Jun 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants