/**
  * testRead
  *
  * @return void
  * @access public
  */
 function testRead()
 {
     $result = $this->Model->read(null, 1);
     $expected = array('ArrayModel' => array('id' => 1, 'name' => 'USA'));
     $this->assertEqual($result, $expected);
     $result = $this->Model->read(array('name'), 2);
     $expected = array('ArrayModel' => array('name' => 'Brazil'));
     $this->assertEqual($result, $expected);
 }
 /**
  * testRead
  *
  * @return void
  */
 public function testRead()
 {
     $result = $this->Model->read(null, 1);
     $expected = array('ArrayModel' => array('id' => 1, 'name' => 'USA', 'relate_id' => 1));
     $this->assertEquals($expected, $result);
     $result = $this->Model->read(array('name'), 2);
     $expected = array('ArrayModel' => array('name' => 'Brazil'));
     $this->assertEquals($expected, $result);
 }
 /**
  * testFindList
  *
  * @return void
  * @access public
  */
 function testFindList()
 {
     $result = $this->Model->find('list');
     $expected = array(1 => 1, 2 => 2, 3 => 3);
     $this->assertEqual($result, $expected);
     $this->Model->displayField = 'name';
     $result = $this->Model->find('list');
     $expected = array(1 => 'USA', 2 => 'Brazil', 3 => 'Germany');
     $this->assertEqual($result, $expected);
 }