Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 public function testCreateDefaults()
 {
     $userRole = new UserRole();
     $this->assertSame(null, $userRole->getName());
     $this->assertSame(null, $userRole->getDescription());
 }