ILIAS  release_8 Revision v8.24
ClassificationSessionRepositoryTest Class Reference
+ Inheritance diagram for ClassificationSessionRepositoryTest:
+ Collaboration diagram for ClassificationSessionRepositoryTest:

Public Member Functions

 testValueForProvider ()
 
 testUnsetAll ()
 
 testUnsetValueForProvider ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ilClassificationSessionRepository $repo
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 8 of file ClassificationSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

ClassificationSessionRepositoryTest::setUp ( )
protected

Definition at line 12 of file ClassificationSessionRepositoryTest.php.

12 : void
13 {
14 parent::setUp();
15 $this->repo = new ilClassificationSessionRepository(14);
16 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ tearDown()

ClassificationSessionRepositoryTest::tearDown ( )
protected

Definition at line 18 of file ClassificationSessionRepositoryTest.php.

18 : void
19 {
20 }

◆ testUnsetAll()

ClassificationSessionRepositoryTest::testUnsetAll ( )

◆ testUnsetValueForProvider()

ClassificationSessionRepositoryTest::testUnsetValueForProvider ( )

Definition at line 43 of file ClassificationSessionRepositoryTest.php.

43 : void
44 {
46 $repo->setValueForProvider("prov1", [1,2,3]);
47 $repo->setValueForProvider("prov2", [3,4,5]);
49 $this->assertEquals(
50 [],
52 );
53 $this->assertEquals(
54 [3,4,5],
56 );
57 }

References $repo, ilClassificationSessionRepository\getValueForProvider(), ilClassificationSessionRepository\setValueForProvider(), and ilClassificationSessionRepository\unsetValueForProvider().

+ Here is the call graph for this function:

◆ testValueForProvider()

ClassificationSessionRepositoryTest::testValueForProvider ( )

Definition at line 22 of file ClassificationSessionRepositoryTest.php.

22 : void
23 {
25 $repo->setValueForProvider("prov", [1,2,3]);
26 $this->assertEquals(
27 [1,2,3],
29 );
30 }

References $repo, ilClassificationSessionRepository\getValueForProvider(), and ilClassificationSessionRepository\setValueForProvider().

+ Here is the call graph for this function:

Field Documentation

◆ $repo

ilClassificationSessionRepository ClassificationSessionRepositoryTest::$repo
protected

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