Exemplo n.º 1
0
 public function testInitializeManager()
 {
     $manager = new RepositoryManager('Designplug\\Repository\\Tests\\Repository', 'Designplug\\Repository\\Tests\\Entity', 'Designplug\\Repository\\Tests\\RepositoryInitializer');
     $manager->setDatabaseManager(new DatabaseManager());
     $manager->setInitializationServices(array('service1' => 'Designplug\\Repository\\Tests\\Service\\Service1', 'service2' => 'Designplug\\Repository\\Tests\\Service\\Service2'));
     return $manager;
 }
Exemplo n.º 2
0
 public function testInitializeManager()
 {
     $manager = new RepositoryManager('Designplug\\Illuminate\\Tests\\Repository', 'Designplug\\Illuminate\\Tests\\Entity', 'Designplug\\Illuminate\\Tests\\RepositoryInitializer');
     $db = new DatabaseManager();
     $db->setConnectionParameters(require 'config.php');
     $manager->setDatabaseManager($db);
     return $manager;
 }