jikan-rest/tests/Integration/MagazineControllerTest.php
2023-05-21 11:18:02 +01:00

28 lines
683 B
PHP

<?php /** @noinspection PhpIllegalPsrClassPathInspection */
namespace Tests\Integration;
use App\Magazine;
use App\Testing\ScoutFlush;
use App\Testing\SyntheticMongoDbTransaction;
use Tests\TestCase;
class MagazineControllerTest extends TestCase
{
use SyntheticMongoDbTransaction;
use ScoutFlush;
public function testMagazinesListing()
{
Magazine::factory(1)->create();
$this->get('/v4/magazines')
->seeStatusCode(200)
->seeJsonStructure(['data' => [
[
'mal_id',
'name',
'url',
'count'
]
]]);
}
}