Definition at line 25 of file ilKioskModeServiceTest.php.
◆ test_createObject()
ilKioskModeServiceTest::test_createObject |
( |
| ) |
|
Definition at line 27 of file ilKioskModeServiceTest.php.
References $lng.
29 $ctrl = $this->createMock(ilCtrl::class);
30 $lng = $this->createMock(ilLanguage::class);
31 $access = $this->createMock(ilAccess::class);
32 $obj_definition = $this->createMock(ilObjectDefinition::class);
36 $this->assertInstanceOf(ilKioskModeService::class, $obj);
Central entry point for users of the service.
◆ test_getViewFor()
ilKioskModeServiceTest::test_getViewFor |
( |
| ) |
|
Definition at line 65 of file ilKioskModeServiceTest.php.
References $lng.
67 $ctrl = $this->createMock(ilCtrl::class);
68 $lng = $this->createMock(ilLanguage::class);
69 $access = $this->createMock(ilAccess::class);
71 $ilObject = $this->createMock(ilObject::class);
73 ->expects($this->once())
75 ->willReturn(
"testtype")
78 $obj_definition = $this->createMock(ilObjectDefinition::class);
80 ->expects($this->exactly(2))
81 ->method(
"getClassName")
88 $result = $obj->getViewFor($ilObject);
90 $this->assertInstanceOf(ilDummyKioskModeView::class, $result);
Central entry point for users of the service.
◆ test_getViewFor_non_existing_type()
ilKioskModeServiceTest::test_getViewFor_non_existing_type |
( |
| ) |
|
Definition at line 39 of file ilKioskModeServiceTest.php.
References $lng.
41 $ctrl = $this->createMock(ilCtrl::class);
42 $lng = $this->createMock(ilLanguage::class);
43 $access = $this->createMock(ilAccess::class);
45 $ilObject = $this->createMock(ilObject::class);
47 ->expects($this->once())
49 ->willReturn(
"testtype")
52 $obj_definition = $this->createMock(ilObjectDefinition::class);
54 ->expects($this->exactly(1))
55 ->method(
"getClassName")
62 $this->assertNull($obj->getViewFor($ilObject));
Central entry point for users of the service.
The documentation for this class was generated from the following file: