mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
28 lines
683 B
PHP
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'
|
|
]
|
|
]]);
|
|
}
|
|
}
|