Example #1
0
 public function testGetWriteConnection()
 {
     $col = new Collection();
     $col->setModel('\\Propel\\Tests\\Bookstore\\Book');
     $con = Propel::getServiceContainer()->getWriteConnection(BookPeer::DATABASE_NAME);
     $this->assertEquals($con, $col->getWriteConnection(), 'getWriteConnection() returns a write connection for the collection model');
 }