28 lines
561 B
PHP
28 lines
561 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Tests\Traits\ApiSignIn;
|
|
use Illuminate\Foundation\Testing\TestResponse;
|
|
|
|
class ApiTestCase extends TestCase
|
|
{
|
|
use ApiSignIn;
|
|
|
|
/**
|
|
* Test that the response contains a not found notification.
|
|
*
|
|
* @param TestResponse $response
|
|
* @return mixed
|
|
*/
|
|
public function expectNotFound(TestResponse $response)
|
|
{
|
|
$response->assertStatus(404);
|
|
|
|
$response->assertJsonFragment([
|
|
'message' => 'The resource has not been found',
|
|
'error_code' => 31,
|
|
]);
|
|
}
|
|
}
|