Ejemplo n.º 1
0
 /**
  * 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 . 'feeds', $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' => 'category', 'refTableClass' => 'application_models_categories', 'refColumn' => 'id');
     $this->assertEquals($expected, $referenceMap['categories']);
 }