Files
monica/tests/FeatureTestCase.php
T
2020-04-01 09:50:58 +02:00

29 lines
567 B
PHP

<?php
namespace Tests;
use Tests\Traits\SignIn;
use Illuminate\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,
],
]);
}
}