mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-13 10:42:16 +01:00
Add tests for export endpoints
This commit is contained in:
committed by
Constantin Graf
parent
5a1e05374c
commit
9a60e2b911
@@ -4,6 +4,16 @@ declare(strict_types=1);
|
||||
|
||||
namespace Tests\Unit\Endpoint\Api\V1;
|
||||
|
||||
use Illuminate\Testing\TestResponse;
|
||||
use Tests\TestCaseWithDatabase;
|
||||
|
||||
class ApiEndpointTestAbstract extends TestCaseWithDatabase {}
|
||||
class ApiEndpointTestAbstract extends TestCaseWithDatabase
|
||||
{
|
||||
protected function assertResponseCode(TestResponse $response, int $statusCode): void
|
||||
{
|
||||
if ($response->getStatusCode() !== $statusCode) {
|
||||
dump($response->getContent());
|
||||
}
|
||||
$response->assertStatus($statusCode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user