@@ 21-27 (lines=7) @@ | ||
18 | ||
19 | class RegistryTest extends TestCase |
|
20 | { |
|
21 | public function testGetDefaultConnectionName() |
|
22 | { |
|
23 | $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
|
24 | $registry = new Registry($container, array(), array(), 'default', 'default'); |
|
25 | ||
26 | $this->assertEquals('default', $registry->getDefaultConnectionName()); |
|
27 | } |
|
28 | ||
29 | public function testGetDefaultEntityManagerName() |
|
30 | { |
|
@@ 29-35 (lines=7) @@ | ||
26 | $this->assertEquals('default', $registry->getDefaultConnectionName()); |
|
27 | } |
|
28 | ||
29 | public function testGetDefaultEntityManagerName() |
|
30 | { |
|
31 | $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
|
32 | $registry = new Registry($container, array(), array(), 'default', 'default'); |
|
33 | ||
34 | $this->assertEquals('default', $registry->getDefaultManagerName()); |
|
35 | } |
|
36 | ||
37 | public function testGetDefaultConnection() |
|
38 | { |