Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
fhelfer committed Nov 20, 2024
1 parent 16d520f commit f87dec6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 105 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ public function getUserData(UserDataFilter $filter, array $ilCtrlStack): array

$link = '';
if ([] !== $ilCtrlStack) {
$this->ctrl->setParameterByClass(ilUserCertificateApiGUI::class, 'certificate_id', $id);
$link = $this->ctrl->getLinkTargetByClass($ilCtrlStack, ilUserCertificateApiGUI::CMD_DOWNLOAD);
$this->ctrl->clearParametersByClass(ilUserCertificateApiGUI::class);
}

$dataObject = new UserCertificateDto(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ public function testGetUserData(): void
$this->assertSame('breakdanceMcFunkyPants', $object->getUserLogin());
$this->assertSame('[email protected]', $object->getUserEmail());
$this->assertSame('[email protected]', $object->getUserSecondEmail());
$this->assertSame('somewhere.php?goto=4', $object->getDownloadLink());
$this->assertSame('', $object->getDownloadLink());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public function testCreationOfGuiClass(): void
$controller = $this->getMockBuilder(ilCtrlInterface::class)
->disableOriginalConstructor()
->getMock();

$gui = new ilUserCertificateApiGUI($language, $request, $logger, $controller);
$this->assertInstanceOf(ilUserCertificateApiGUI::class, $gui);
$this->assertSame('', '');
}
}

0 comments on commit f87dec6

Please sign in to comment.