ILIAS  release_8 Revision v8.25
MepClipboardSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
3use PHPUnit\Framework\TestCase;
4
11{
12 protected \ILIAS\MediaPool\Clipboard\ClipboardSessionRepository $clipboard;
13
14 protected function setUp(): void
15 {
16 parent::setUp();
17 $this->clipboard = new \ILIAS\MediaPool\Clipboard\ClipboardSessionRepository();
18 }
19
20 protected function tearDown(): void
21 {
22 }
23
24 public function testFolder(): void
25 {
27 $clipboard->setFolder(4);
28 $this->assertEquals(
29 4,
30 $clipboard->getFolder()
31 );
32 }
33
34 public function testIds(): void
35 {
37 $clipboard->setIds([3,5,7]);
38 $this->assertEquals(
39 [3,5,7],
40 $clipboard->getIds()
41 );
42 }
43}
ILIAS MediaPool Clipboard ClipboardSessionRepository $clipboard