예제 #1
0
 public function testGetById()
 {
     $record = $this->table->createRecord(array('id' => 7, 'username' => 'Bart'), true);
     $recordFromRepository = $this->repository->getByInternalId(7);
     $this->assertEquals($record, $recordFromRepository);
 }
예제 #2
0
파일: Table.php 프로젝트: sigma-z/dive
 /**
  * Gets record from repository
  *
  * @param  string $id
  * @return bool|Record
  */
 public function getFromRepository($id)
 {
     return $this->repository->getByInternalId($id);
 }