public function testInitializingExistingEntity() { $entity = new Dummy($this->adapter, 1); $entity->setFirstName('lilith'); $this->assertEquals('lilith', $entity->getFirstName()); $this->assertEquals('man', $entity->getName()); }
public function testSettingPropertiesFromArray() { $this->entity->fromArray(['number' => 666, 'name' => 'beast']); $this->assertEquals(666, $this->entity->getNumber()); $this->assertEquals('beast', $this->entity->getName()); }