/** * test configuration */ public function testConfiguration() { $this->assertEquals($this->db, $this->model->getAdapter()); $this->assertEquals(array(1 => 'id'), $this->model->info('primary')); $this->assertEquals(Zend_Registry::get('config')->resources->db->prefix . 'messages', $this->model->info('name')); $this->assertEquals(Zend_Registry::get('config')->resources->db->params->dbname, $this->model->info('schema')); $referenceMap = $this->model->info('referenceMap'); $expected = array('columns' => 'feed', 'refTableClass' => 'application_models_feeds', 'refColumn' => 'id'); $this->assertEquals($expected, $referenceMap['messages']); }