Beispiel #1
0
 public function testInit()
 {
     $recordSet = new MockRecordSet();
     $this->assertInstanceOf('lithium\\data\\collection\\RecordSet', $recordSet);
     $recordSet = new MockRecordSet(array('model' => $this->_model, 'result' => true, 'exists' => true));
     $this->assertEqual($this->_model, $recordSet->model());
     $this->assertTrue($recordSet->get('_result'));
 }
 public function testInit()
 {
     $recordSet = new MockRecordSet();
     $this->assertTrue($recordSet instanceof RecordSet);
     $recordSet = new MockRecordSet(array('model' => $this->_model, 'result' => true, 'exists' => true));
     $this->assertEqual($this->_model, $recordSet->model());
     $this->assertTrue($recordSet->get('_result'));
 }