ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References ilCmiXapiVerbList\getInstance().

30  : void
31  {
32  $verbList = ilCmiXapiVerbList::getInstance();
33  $this->assertEquals(
34  'http://adlnet.gov/expapi/verbs/answered',
35  $verbList->getVerbUri('answered')
36  );
37  }
+ Here is the call graph for this function:

◆ testVerbTranslation()

ilCmiXapiVerbListTest::testVerbTranslation ( )

Definition at line 39 of file ilCmiXapiVerbListTest.php.

References $lng, and ilCmiXapiVerbList\getInstance().

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 
52  $verbList = ilCmiXapiVerbList::getInstance();
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  }
$lng
+ Here is the call graph for this function:

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