Esempio n. 1
0
 public function testGetById()
 {
     $record = $this->table->createRecord(array('id' => 7, 'username' => 'Bart'), true);
     $recordFromRepository = $this->repository->getByInternalId(7);
     $this->assertEquals($record, $recordFromRepository);
 }
Esempio n. 2
0
 /**
  * Gets record from repository
  *
  * @param  string $id
  * @return bool|Record
  */
 public function getFromRepository($id)
 {
     return $this->repository->getByInternalId($id);
 }