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

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