ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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\setUp
setUp()
Definition:
MepClipboardSessionRepositoryTest.php:30
MepClipboardSessionRepositoryTest
Test clipboard repository.
Definition:
MepClipboardSessionRepositoryTest.php:26
MepClipboardSessionRepositoryTest\testIds
testIds()
Definition:
MepClipboardSessionRepositoryTest.php:50
MepClipboardSessionRepositoryTest\tearDown
tearDown()
Definition:
MepClipboardSessionRepositoryTest.php:36
MepClipboardSessionRepositoryTest\testFolder
testFolder()
Definition:
MepClipboardSessionRepositoryTest.php:40
MepClipboardSessionRepositoryTest\$clipboard
ILIAS MediaPool Clipboard ClipboardSessionRepository $clipboard
Definition:
MepClipboardSessionRepositoryTest.php:28
TestCase
TestCase
components
ILIAS
MediaPool
tests
MepClipboardSessionRepositoryTest.php
Generated on Sun Aug 31 2025 23:03:21 for ILIAS by
1.8.13 (using
Doxyfile
)