public function __construct(UserRole $userRole) { $this->entity = $userRole; $this->entityDTO = new UserRoleDTO(); $this->setId(); $this->setTime(); $this->entityDTO->name = $this->entity->getName(); $this->entityDTO->description = $this->entity->getDescription(); }
public function testCreateDefaults() { $userRole = new UserRole(); $this->assertSame(null, $userRole->getName()); $this->assertSame(null, $userRole->getDescription()); }