Completed
Pull Request — master (#168)
by Serhii
02:19
created

testFindAllNotEmpty()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Tests\Functional\Repository;
4
5
use App\Entity\RepertoireSeason;
6
use App\Repository\RepertoireSeasonRepository;
7
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
8
9
class RepertoireSeasonRepositoryTest extends WebTestCase
10
{
11
    public function testFindAllNotEmpty()
12
    {
13
        self::bootKernel();
14
        $seasons = self::$container->get(RepertoireSeasonRepository::class)->findAllNotEmpty();
15
16
        $this->assertIsArray($seasons);
17
        $this->assertNotEmpty($seasons);
18
        $this->assertInstanceOf(RepertoireSeason::class, $seasons[0]);
19
    }
20
}
21