Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function testIfInvokable() |
||
31 | { |
||
32 | $container = $this->prophesize(ContainerInterface::class); |
||
33 | $factory = new EntityManagerFactory(); |
||
34 | |||
35 | $container->get('config')->willReturn([ |
||
36 | 'debug' => false, |
||
37 | 'orm' => [ |
||
38 | 'connection' => [ |
||
39 | 'charset' => 'utf8mb4', |
||
40 | 'collate' => 'utf8mb4_unicode_ci', |
||
41 | 'dbname' => 'steamscore', |
||
42 | 'driver' => 'mysqli', |
||
43 | 'host' => 'localhost', |
||
44 | 'password' => '', |
||
45 | 'port' => 3306, |
||
46 | 'user' => 'root', |
||
47 | ], |
||
48 | 'mapping' => [ |
||
49 | 'data/orm' => 'SteamScore\Api\Domain\Entities', |
||
50 | ], |
||
51 | 'proxies' => 'data/proxies', |
||
52 | ], |
||
53 | ]); |
||
54 | |||
55 | $instance = $factory($container->reveal()); |
||
56 | |||
57 | $this->assertInstanceOf(EntityManagerInterface::class, $instance); |
||
58 | } |
||
59 | } |
||
60 |