1
|
<?php
|
2
|
|
3
|
namespace App\Test\Repository;
|
4
|
|
5
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
6
|
use App\Repository\OpenDataManager;
|
7
|
|
8
|
class OpenDataManagerTest extends KernelTestCase {
|
9
|
|
10
|
private $manager;
|
11
|
|
12
|
protected function setUp() : void {
|
13
|
$kernel = self::bootKernel();
|
14
|
$this->manager = $kernel->getContainer()->get('App\Repository\IOpenDataManager');
|
15
|
}
|
16
|
|
17
|
public function testAvailableCollections() {
|
18
|
$this->assertCount(3, $this->manager->getAvailableCollections());
|
19
|
}
|
20
|
}
|