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