|
@@ 10-16 (lines=7) @@
|
| 7 |
|
|
| 8 |
|
class RegistryTest extends TestCase |
| 9 |
|
{ |
| 10 |
|
public function testGetDefaultConnectionName() |
| 11 |
|
{ |
| 12 |
|
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock(); |
| 13 |
|
$registry = new Registry($container, [], [], 'default', 'default'); |
| 14 |
|
|
| 15 |
|
$this->assertEquals('default', $registry->getDefaultConnectionName()); |
| 16 |
|
} |
| 17 |
|
|
| 18 |
|
public function testGetDefaultEntityManagerName() |
| 19 |
|
{ |
|
@@ 18-24 (lines=7) @@
|
| 15 |
|
$this->assertEquals('default', $registry->getDefaultConnectionName()); |
| 16 |
|
} |
| 17 |
|
|
| 18 |
|
public function testGetDefaultEntityManagerName() |
| 19 |
|
{ |
| 20 |
|
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock(); |
| 21 |
|
$registry = new Registry($container, [], [], 'default', 'default'); |
| 22 |
|
|
| 23 |
|
$this->assertEquals('default', $registry->getDefaultManagerName()); |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
public function testGetDefaultConnection() |
| 27 |
|
{ |