ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilCmiXapiVerbListTest Class Reference

Class ilObjSCORMValidatorTest. More...

+ Inheritance diagram for ilCmiXapiVerbListTest:
+ Collaboration diagram for ilCmiXapiVerbListTest:

Public Member Functions

 testVerbList ()
 
 testVerbTranslation ()
 

Detailed Description

Class ilObjSCORMValidatorTest.

Author
Uwe Kohnle suppo.nosp@m.rt@i.nosp@m.ntern.nosp@m.etle.nosp@m.hrer-.nosp@m.gmbh.nosp@m..de

Definition at line 28 of file ilCmiXapiVerbListTest.php.

Member Function Documentation

◆ testVerbList()

ilCmiXapiVerbListTest::testVerbList ( )

Definition at line 30 of file ilCmiXapiVerbListTest.php.

30 : void
31 {
33 $this->assertEquals(
34 'http://adlnet.gov/expapi/verbs/answered',
35 $verbList->getVerbUri('answered')
36 );
37 }

References ilCmiXapiVerbList\getInstance().

+ Here is the call graph for this function:

◆ testVerbTranslation()

ilCmiXapiVerbListTest::testVerbTranslation ( )

Definition at line 39 of file ilCmiXapiVerbListTest.php.

39 : void
40 {
41 $lng = $this->getMockBuilder(ilLanguage::class)
42 ->disableOriginalConstructor()
43 ->getMock();
44
45 $lng->expects($this->exactly(2))
46 ->method('txt')
47 ->willReturnOnConsecutiveCalls(
48 '-cmix_answered',
49 'answered'
50 );
51
53 $this->assertEquals(
54 'answered',
55 $verbList->getVerbTranslation(
56 $lng,
57 'http://adlnet.gov/expapi/verbs/answered'
58 )
59 );
60 $this->assertEquals(
61 'answered',
62 $verbList->getVerbTranslation(
63 $lng,
64 'http://adlnet.gov/expapi/verbs/answered'
65 )
66 );
67 }
global $lng
Definition: privfeed.php:31

References $lng, and ilCmiXapiVerbList\getInstance().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: