Files
animethemes-server/tests/Feature/Http/Api/FallbackTest.php
T
2025-06-27 02:52:13 -03:00

30 lines
537 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Feature\Http\Api;
use Illuminate\Support\Str;
use Tests\TestCase;
/**
* Class FallbackTest.
*/
class FallbackTest extends TestCase
{
/**
* The API shall return an errors object when requests are made to an
* unregistered route.
*
* @return void
*/
public function test_abort_json(): void
{
$response = $this->get(route('api.anime.index').Str::random());
$response->assertJsonStructure([
'message',
]);
}
}