ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
MepClipboardSessionRepositoryTest.php
Go to the documentation of this file.
1
<?php
2
19
use PHPUnit\Framework\TestCase;
20
26
class
MepClipboardSessionRepositoryTest
extends
TestCase
27
{
28
protected \ILIAS\MediaPool\Clipboard\ClipboardSessionRepository
$clipboard
;
29
30
protected
function
setUp
(): void
31
{
32
parent::setUp();
33
$this->clipboard = new \ILIAS\MediaPool\Clipboard\ClipboardSessionRepository();
34
}
35
36
protected
function
tearDown
(): void
37
{
38
}
39
40
public
function
testFolder
(): void
41
{
42
$clipboard
=
$this->clipboard
;
43
$clipboard
->setFolder(4);
44
$this->assertEquals(
45
4,
46
$clipboard
->getFolder()
47
);
48
}
49
50
public
function
testIds
(): void
51
{
52
$clipboard
=
$this->clipboard
;
53
$clipboard
->setIds([3,5,7]);
54
$this->assertEquals(
55
[3,5,7],
56
$clipboard
->getIds()
57
);
58
}
59
}
MepClipboardSessionRepositoryTest
Test clipboard repository.
Definition:
MepClipboardSessionRepositoryTest.php:27
MepClipboardSessionRepositoryTest\setUp
setUp()
Definition:
MepClipboardSessionRepositoryTest.php:30
MepClipboardSessionRepositoryTest\testFolder
testFolder()
Definition:
MepClipboardSessionRepositoryTest.php:40
MepClipboardSessionRepositoryTest\$clipboard
ILIAS MediaPool Clipboard ClipboardSessionRepository $clipboard
Definition:
MepClipboardSessionRepositoryTest.php:28
MepClipboardSessionRepositoryTest\testIds
testIds()
Definition:
MepClipboardSessionRepositoryTest.php:50
MepClipboardSessionRepositoryTest\tearDown
tearDown()
Definition:
MepClipboardSessionRepositoryTest.php:36
components
ILIAS
MediaPool
tests
MepClipboardSessionRepositoryTest.php
Generated on Sat Oct 18 2025 23:03:25 for ILIAS by
1.9.4 (using
Doxyfile
)