14 protected function mockUIFactory()
21 $ui_reflection->getMethods()
24 $ui_factory = $this->getMockBuilder(UIFactory::class)
25 ->setMethods($methods)
29 $ui_factory->method(
'button')
31 $ui_factory->method(
'viewControl')
32 ->willReturn(
new CImpl\ViewControl\Factory($signal_generator));
34 $ui_factory->method(
'breadcrumbs')
35 ->will($this->returnCallback([static::class,
'uiFactoryBreadcrumbs']));
37 $ui_factory->method(
'link')
38 ->willReturn(
new CImpl\Link\Factory());
44 public function uiFactoryBreadcrumbs()
46 $args = func_get_args();
47 return new CImpl\Breadcrumbs\Breadcrumbs($args[0]);
51 protected function mockIlLanguage()
53 $lng = $this->getMockBuilder(ilLanguage::class)
54 ->disableOriginalConstructor()