19 declare(strict_types=1);
21 require_once(
'libs/composer/vendor/autoload.php');
29 protected function setUp(): void
36 $this->assertInstanceOf(ilKSDocumentationGotoLink::class, $this->goto_link);
41 $link = $this->goto_link->generateGotoLink(
'nodeId',
'skinId',
'styleId');
42 $this->assertEquals(
'_nodeId_skinId_styleId', $link);
47 $ctrl_observer = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
48 'setParameterByClass',
53 $ctrl_observer->expects($this->once())
54 ->method(
'redirectByClass')
56 'ilAdministrationGUI',
57 'ilObjStyleSettingsGUI',
58 'ilSystemStyleMainGUI',
59 'ilSystemStyleDocumentationGUI' 62 $params = [
'something',
'something',
'nodeId',
'skinId',
'styleId'];
63 $this->goto_link->redirectWithGotoLink(
'ref_id',
$params, $ctrl_observer);
testRedirectWithGotoLink()
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Generatates and reads Goto Links.
ilKSDocumentationGotoLink $goto_link