Completed
Pull Request — master (#168)
by Serhii
04:34
created

RepertoireSeasonRepositoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFindAllNotEmpty() 0 9 1
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