for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Tests\Functional\Repository;
use App\Entity\RepertoireSeason;
use App\Repository\RepertoireSeasonRepository;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class RepertoireSeasonRepositoryTest extends WebTestCase
{
public function testFindAllNotEmpty()
self::bootKernel();
$seasons = self::$container
->get(RepertoireSeasonRepository::class)
->findAllNotEmpty();
$this->assertIsArray($seasons);
$this->assertNotEmpty($seasons);
$this->assertInstanceOf(RepertoireSeason::class, $seasons[0]);
}
public function testFindCurrentSeason()
$season = self::$container
->findCurrentSeason();
$this->assertNotNull($season);
$this->assertInstanceOf(RepertoireSeason::class, $season);