ILIAS  release_8 Revision v8.24
ClassificationSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
3use PHPUnit\Framework\TestCase;
4
9{
11
12 protected function setUp(): void
13 {
14 parent::setUp();
15 $this->repo = new ilClassificationSessionRepository(14);
16 }
17
18 protected function tearDown(): void
19 {
20 }
21
22 public function testValueForProvider(): void
23 {
25 $repo->setValueForProvider("prov", [1,2,3]);
26 $this->assertEquals(
27 [1,2,3],
29 );
30 }
31
32 public function testUnsetAll(): void
33 {
35 $repo->setValueForProvider("prov", [1,2,3]);
36 $repo->unsetAll();
37 $this->assertEquals(
38 [],
40 );
41 }
42
43 public function testUnsetValueForProvider(): 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 }
58}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...