private static function createDBManager()
 {
     return \Aimeos\MW\DB\Factory::createManager(self::getConfig(), 'PDO');
 }
Exemple #2
0
 public function testFactoryFail()
 {
     $this->setExpectedException('\\Aimeos\\MW\\DB\\Exception');
     \Aimeos\MW\DB\Factory::createManager(\TestHelperMw::getConfig(), 'notDefined');
 }
Exemple #3
0
 public function testFactory()
 {
     $dbm = \Aimeos\MW\DB\Factory::createManager(\TestHelperMw::getConfig());
     $this->setExpectedException('\\Aimeos\\MW\\Tree\\Exception');
     \Aimeos\MW\Tree\Factory::createManager('DBNestedSet', array(), $dbm);
 }