ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilScorm2004TrackingItemsTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilScorm2004TrackingItemsTest:
+ Collaboration diagram for ilScorm2004TrackingItemsTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 test_parentObjectMethodExistsAndReturns ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilScorm2004BaseTestCase
 setUp ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilPluginAdmin ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 

Private Attributes

ilSCORM2004TrackingItems $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilScorm2004BaseTestCase
Container $dic
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilScorm2004TrackingItemsTest

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 25 of file ilScorm2004TrackingItemsTest.php.

Member Function Documentation

◆ setUp()

ilScorm2004TrackingItemsTest::setUp ( )
protected

Definition at line 29 of file ilScorm2004TrackingItemsTest.php.

References ilScorm2004BaseTestCase\addGlobal_ilDB(), ilScorm2004BaseTestCase\addGlobal_ilErr(), ilScorm2004BaseTestCase\addGlobal_ilias(), and ilScorm2004BaseTestCase\addGlobal_lng().

29  : void
30  {
31  parent::setUp();
32 
33  $this->addGlobal_ilErr();
34  $this->addGlobal_ilDB();
35  $this->addGlobal_ilias();
36  $this->addGlobal_lng();
37 
38  $this->testObj = new ilSCORM2004TrackingItems();
39  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

ilScorm2004TrackingItemsTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 41 of file ilScorm2004TrackingItemsTest.php.

41  : void
42  {
43  $this->assertInstanceOf(ilSCORM2004TrackingItems::class, $this->testObj);
44  }

◆ test_parentObjectMethodExistsAndReturns()

ilScorm2004TrackingItemsTest::test_parentObjectMethodExistsAndReturns ( )

Definition at line 46 of file ilScorm2004TrackingItemsTest.php.

46  : void
47  {
48  $timeStr = '2:22:22';
49  $timeInt = 8542;
50  $SCORMTimeToSeconds = $this->testObj->SCORMTimeToSeconds($timeStr);
51 
52  $this->assertEquals($timeInt, $SCORMTimeToSeconds);
53  }

Field Documentation

◆ $testObj

ilSCORM2004TrackingItems ilScorm2004TrackingItemsTest::$testObj
private

Definition at line 27 of file ilScorm2004TrackingItemsTest.php.


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