ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ClassificationSessionRepositoryTest Class Reference
+ Inheritance diagram for ClassificationSessionRepositoryTest:
+ Collaboration diagram for ClassificationSessionRepositoryTest:

Public Member Functions

 testValueForProvider ()
 
 testUnsetAll ()
 
 testUnsetValueForProvider ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ILIAS Container Classification ClassificationSessionRepository $repo
 

Detailed Description

Definition at line 23 of file ClassificationSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

ClassificationSessionRepositoryTest::setUp ( )
protected

Definition at line 27 of file ClassificationSessionRepositoryTest.php.

27 : void
28 {
29 parent::setUp();
30 $this->repo = new \ILIAS\Container\Classification\ClassificationSessionRepository(14);
31 }

◆ tearDown()

ClassificationSessionRepositoryTest::tearDown ( )
protected

Definition at line 33 of file ClassificationSessionRepositoryTest.php.

33 : void
34 {
35 }

◆ testUnsetAll()

ClassificationSessionRepositoryTest::testUnsetAll ( )

Definition at line 47 of file ClassificationSessionRepositoryTest.php.

47 : void
48 {
50 $repo->setValueForProvider("prov", [1, 2, 3]);
51 $repo->unsetAll();
52 $this->assertEquals(
53 [],
54 $repo->getValueForProvider("prov")
55 );
56 }
ILIAS Container Classification ClassificationSessionRepository $repo

References $repo.

◆ testUnsetValueForProvider()

ClassificationSessionRepositoryTest::testUnsetValueForProvider ( )

Definition at line 58 of file ClassificationSessionRepositoryTest.php.

58 : void
59 {
61 $repo->setValueForProvider("prov1", [1, 2, 3]);
62 $repo->setValueForProvider("prov2", [3, 4, 5]);
63 $repo->unsetValueForProvider("prov1");
64 $this->assertEquals(
65 [],
66 $repo->getValueForProvider("prov1")
67 );
68 $this->assertEquals(
69 [3, 4, 5],
70 $repo->getValueForProvider("prov2")
71 );
72 }

References $repo.

◆ testValueForProvider()

ClassificationSessionRepositoryTest::testValueForProvider ( )

Definition at line 37 of file ClassificationSessionRepositoryTest.php.

37 : void
38 {
40 $repo->setValueForProvider("prov", [1, 2, 3]);
41 $this->assertEquals(
42 [1, 2, 3],
43 $repo->getValueForProvider("prov")
44 );
45 }

References $repo.

Field Documentation

◆ $repo

ILIAS Container Classification ClassificationSessionRepository ClassificationSessionRepositoryTest::$repo
protected

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