brilo-example/tests/Integration/Service/Remote/BriloApiCommentsTest.php

29 lines
713 B
PHP
Raw Permalink Normal View History

2024-07-29 16:50:58 +00:00
<?php
declare(strict_types=1);
namespace App\Tests\Integration\Service\Remote;
use App\Service\Remote\BriloApiComments;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
class BriloApiCommentsTest extends KernelTestCase
{
public function setUp(): void
{
parent::bootKernel();
}
public function testBlogApiUsersAreRetrieved(): void
{
/**
* @var BriloApiComments $api
*/
$api = static::getContainer()->get(BriloApiComments::class);
$users = $api->getComments();
$this->assertIsArray($users);
$this->assertGreaterThan(0, count($users));
// Tady bych dal jeste check na zaznam ktery vim ze vzdy existuje
}
}