/** * @test */ public function recordToObject() { $object = new EntityTestItem(); $this->assertNull($this->entityMapper->recordToObject(NULL, $object)); $this->entityMapper->recordToObject(['title' => 'qBzJtCy23R1y+c4wh57eprVW', 'description' => 'zlMO+cTGtCJYV/eXHvoe+iBe'], $object); $this->assertSame('qBzJtCy23R1y+c4wh57eprVW', $object->getTitle()); }
/** * @param $record * @return AbstractModel */ protected function recordToObject($record) { return $this->entityMapper->recordToObject($record, $this->createEmptyModel()); }