Commit b12df85c authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Fix failing tests

parent 00e4180a
......@@ -12,7 +12,7 @@ use Tests\Feature\AuthenticatesWithApplicationTestCase;
class GetGroupApiTest extends AuthenticatesWithApplicationTestCase
{
/**
* @var \Illuminate\Foundation\Testing\TestResponse
* @var \Illuminate\Testing\TestResponse
*/
protected TestResponse $response;
......@@ -43,6 +43,7 @@ class GetGroupApiTest extends AuthenticatesWithApplicationTestCase
/**
* @test
* @throws \Source\Exceptions\EntityNotFoundException
* @throws \Source\Exceptions\EntityExistsException
*/
public function it_protects_the_route(): void
{
......@@ -56,6 +57,7 @@ class GetGroupApiTest extends AuthenticatesWithApplicationTestCase
/**
* @test
* @throws \Source\Exceptions\EntityNotFoundException
* @throws \Source\Exceptions\EntityExistsException
*/
public function it_returns_404_on_non_existent_group(): void
{
......@@ -68,7 +70,7 @@ class GetGroupApiTest extends AuthenticatesWithApplicationTestCase
[
'status' => 'error',
'code' => 404,
'message' => 'Entity not found',
'message' => 'Group does not exist.',
]
);
}
......@@ -76,6 +78,7 @@ class GetGroupApiTest extends AuthenticatesWithApplicationTestCase
/**
* @test
* @throws \Source\Exceptions\EntityNotFoundException
* @throws \Source\Exceptions\EntityExistsException
*/
public function it_returns_a_group(): void
{
......
......@@ -42,6 +42,7 @@ class GetUserApiTest extends AuthenticatesWithApplicationTestCase
/**
* @test
* @throws \Source\Exceptions\EntityNotFoundException
* @throws \Source\Exceptions\EntityExistsException
*/
public function it_returns_404_on_non_existent_user(): void
{
......@@ -54,7 +55,7 @@ class GetUserApiTest extends AuthenticatesWithApplicationTestCase
[
'status' => 'error',
'code' => 404,
'message' => 'Entity not found',
'message' => 'User does not exist.',
]
);
}
......@@ -62,6 +63,7 @@ class GetUserApiTest extends AuthenticatesWithApplicationTestCase
/**
* @test
* @throws \Source\Exceptions\EntityNotFoundException
* @throws \Source\Exceptions\EntityExistsException
*/
public function it_returns_a_user(): void
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment