mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
34 lines
844 B
PHP
34 lines
844 B
PHP
<?php /** @noinspection PhpIllegalPsrClassPathInspection */
|
|
namespace Tests\Integration;
|
|
use App\Producers;
|
|
use App\Testing\ScoutFlush;
|
|
use App\Testing\SyntheticMongoDbTransaction;
|
|
use Tests\TestCase;
|
|
|
|
class ProducerControllerTest extends TestCase
|
|
{
|
|
use SyntheticMongoDbTransaction;
|
|
use ScoutFlush;
|
|
|
|
public function testProducersListing()
|
|
{
|
|
Producers::factory()->createOne();
|
|
$this->get('/v4/producers')
|
|
->seeStatusCode(200)
|
|
->seeJsonStructure(['data'=>[
|
|
[
|
|
'mal_id',
|
|
'url',
|
|
'titles',
|
|
'images',
|
|
'count',
|
|
'favorites',
|
|
'established',
|
|
'about',
|
|
'count'
|
|
]
|
|
]]);
|
|
}
|
|
|
|
}
|