Files
monica/tests/FeatureTestCase.php
T
2018-11-11 14:45:41 +01:00

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,
],
]);
}
}