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