Completed
Pull Request — master (#9)
by Roman
03:37
created

testCanBeConstructedWithNecessaryParams()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace src\Kami\ApiCoreBundle\Routing;
4
5
use Kami\ApiCoreBundle\Routing\ApiCoreRoutingLoader;
6
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
7
use Symfony\Component\Routing\RouteCollection;
8
9
class ApiCoreLoaderTest extends WebTestCase
10
{
11
    // can be constructed with necessary params
12
13
    public function testCanBeConstructedWithNecessaryParams()
14
    {
15
        $apiLoader = new ApiCoreRoutingLoader(
16
            [], [], 'en'
17
        );
18
        $this->assertInstanceOf(ApiCoreRoutingLoader::class, $apiLoader);
19
    }
20
21
    // load
22
23
    public function testLoad()
24
    {
25
//        $loader = new ApiCoreRoutingLoader([0 => ['name' => 'my-model', 'entity' => 'Kami\ApiCoreBundle\Resources\Fixtures\Entity\MyModel', 'strategies' => []]], [], 'en');
26
//        $this->assertInstanceOf(RouteCollection::class, $loader->load(''));
27
    }
28
}