public function testTableSetAndGetAdapter() { Zend_Loader::loadClass('Zend_Db_Table_ZfTestTable'); $table = $this->getIdentifier(self::TABLE_NAME); $id = $this->getIdentifier('id'); Zend_Db_Table_ZfTestTable::setDefaultAdapter($this->_db); $dbTable = new Zend_Db_Table_ZfTestTable(array('name' => $table, 'primary' => $id)); $db = $dbTable->getAdapter(); $this->assertThat($db, $this->isInstanceOf('Zend_Db_Adapter_Abstract'), 'Expecting object of type Zend_Db_Adapter_Abstract'); }