ILIAS  release_8 Revision v8.24
BadgeManagementSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
25{
27
28 protected function setUp(): void
29 {
30 parent::setUp();
31 $this->repo = new ilBadgeManagementSessionRepository();
32 $this->repo->clear();
33 }
34
35 protected function tearDown(): void
36 {
37 }
38
39 public function testClear(): void
40 {
42 $repo->setBadgeIds([1,3,4]);
43 $repo->clear();
44 $this->assertEquals(
45 [],
47 );
48 }
49
50 public function testBadgeIds(): void
51 {
53 $repo->setBadgeIds([1,6,7]);
54 $this->assertEquals(
55 [1,6,7],
57 );
58 }
59}