Definition at line 11 of file ilKioskModeServiceTest.php.
◆ test_createObject()
ilKioskModeServiceTest::test_createObject |
( |
| ) |
|
Definition at line 13 of file ilKioskModeServiceTest.php.
References $lng.
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);
Central entry point for users of the service.
◆ test_getViewFor()
ilKioskModeServiceTest::test_getViewFor |
( |
| ) |
|
Definition at line 51 of file ilKioskModeServiceTest.php.
References $lng.
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);
Central entry point for users of the service.
◆ test_getViewFor_non_existing_type()
ilKioskModeServiceTest::test_getViewFor_non_existing_type |
( |
| ) |
|
Definition at line 25 of file ilKioskModeServiceTest.php.
References $lng.
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));
Central entry point for users of the service.
The documentation for this class was generated from the following file: