@@ 65-71 (lines=7) @@ | ||
62 | * @expectedException \InvalidArgumentException |
|
63 | * @expectedExceptionMessage Doctrine ORM Connection named "default" does not exist. |
|
64 | */ |
|
65 | public function testGetUnknownConnection() : void |
|
66 | { |
|
67 | $container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock(); |
|
68 | $registry = new Registry($container, [], [], 'default', 'default'); |
|
69 | ||
70 | $registry->getConnection('default'); |
|
71 | } |
|
72 | ||
73 | public function testGetConnectionNames() : void |
|
74 | { |
|
@@ 113-119 (lines=7) @@ | ||
110 | * @expectedException \InvalidArgumentException |
|
111 | * @expectedExceptionMessage Doctrine ORM Manager named "default" does not exist. |
|
112 | */ |
|
113 | public function testGetUnknownEntityManager() : void |
|
114 | { |
|
115 | $container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock(); |
|
116 | $registry = new Registry($container, [], [], 'default', 'default'); |
|
117 | ||
118 | $registry->getManager('default'); |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * @expectedException \InvalidArgumentException |
|
@@ 125-131 (lines=7) @@ | ||
122 | * @expectedException \InvalidArgumentException |
|
123 | * @expectedExceptionMessage Doctrine ORM Manager named "default" does not exist. |
|
124 | */ |
|
125 | public function testResetUnknownEntityManager() : void |
|
126 | { |
|
127 | $container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock(); |
|
128 | $registry = new Registry($container, [], [], 'default', 'default'); |
|
129 | ||
130 | $registry->resetManager('default'); |
|
131 | } |
|
132 | ||
133 | public function testReset() : void |
|
134 | { |