3 declare(strict_types=1);
    31         $param1 = $this->getMockBuilder(ilWebLinkParameter::class)
    32                        ->disableOriginalConstructor()
    33                        ->onlyMethods([
'appendToLink', 
'getValue'])
    35         $param1->expects($this->once())
    36                ->method(
'appendToLink')
    38                ->willReturn(
'target?param1');
    39         $param1->expects($this->any())
    44         $param2 = $this->getMockBuilder(ilWebLinkParameter::class)
    45                        ->disableOriginalConstructor()
    46                        ->onlyMethods([
'appendToLink', 
'getValue'])
    48         $param2->expects($this->once())
    49                ->method(
'appendToLink')
    50                ->with(
'target?param1')
    51                ->willReturn(
'target?param1¶m2');
    52         $param2->expects($this->any())
    69             'target?param1¶m2',
    70             $item->getResolvedLink(
true)
    74             $item->getResolvedLink(
false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Unit tests for ilWebLinkItemExternal.