3 declare(strict_types=1);
9 require_once
"class.ilDummyKioskModeView.php";
15 $ctrl = $this->createMock(ilCtrl::class);
16 $lng = $this->createMock(ilLanguage::class);
17 $access = $this->createMock(ilAccess::class);
18 $obj_definition = $this->createMock(ilObjectDefinition::class);
22 $this->assertInstanceOf(ilKioskModeService::class, $obj);
27 $ctrl = $this->createMock(ilCtrl::class);
28 $lng = $this->createMock(ilLanguage::class);
29 $access = $this->createMock(ilAccess::class);
31 $ilObject = $this->createMock(ilObject::class);
33 ->expects($this->once())
35 ->willReturn(
"testtype")
38 $obj_definition = $this->createMock(ilObjectDefinition::class);
40 ->expects($this->exactly(1))
41 ->method(
"getClassName")
48 $this->assertNull($obj->getViewFor($ilObject));
53 $ctrl = $this->createMock(ilCtrl::class);
54 $lng = $this->createMock(ilLanguage::class);
55 $access = $this->createMock(ilAccess::class);
57 $ilObject = $this->createMock(ilObject::class);
59 ->expects($this->once())
61 ->willReturn(
"testtype")
64 $obj_definition = $this->createMock(ilObjectDefinition::class);
66 ->expects($this->exactly(2))
67 ->method(
"getClassName")
74 $result = $obj->getViewFor($ilObject);
76 $this->assertInstanceOf(ilDummyKioskModeView::class, $result);
test_getViewFor_non_existing_type()
Central entry point for users of the service.