ILIAS  release_8 Revision v8.25
MepClipboardSessionRepositoryTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for MepClipboardSessionRepositoryTest:
+ Collaboration diagram for MepClipboardSessionRepositoryTest:

Public Member Functions

 testFolder ()
 
 testIds ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ILIAS MediaPool Clipboard ClipboardSessionRepository $clipboard
 

Detailed Description

Test clipboard repository.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 10 of file MepClipboardSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

MepClipboardSessionRepositoryTest::setUp ( )
protected

Definition at line 14 of file MepClipboardSessionRepositoryTest.php.

14 : void
15 {
16 parent::setUp();
17 $this->clipboard = new \ILIAS\MediaPool\Clipboard\ClipboardSessionRepository();
18 }

◆ tearDown()

MepClipboardSessionRepositoryTest::tearDown ( )
protected

Definition at line 20 of file MepClipboardSessionRepositoryTest.php.

20 : void
21 {
22 }

◆ testFolder()

MepClipboardSessionRepositoryTest::testFolder ( )

Definition at line 24 of file MepClipboardSessionRepositoryTest.php.

24 : void
25 {
27 $clipboard->setFolder(4);
28 $this->assertEquals(
29 4,
30 $clipboard->getFolder()
31 );
32 }
ILIAS MediaPool Clipboard ClipboardSessionRepository $clipboard

References $clipboard.

◆ testIds()

MepClipboardSessionRepositoryTest::testIds ( )

Definition at line 34 of file MepClipboardSessionRepositoryTest.php.

34 : void
35 {
37 $clipboard->setIds([3,5,7]);
38 $this->assertEquals(
39 [3,5,7],
40 $clipboard->getIds()
41 );
42 }

References $clipboard.

Field Documentation

◆ $clipboard

ILIAS MediaPool Clipboard ClipboardSessionRepository MepClipboardSessionRepositoryTest::$clipboard
protected

Definition at line 12 of file MepClipboardSessionRepositoryTest.php.

Referenced by testFolder(), and testIds().


The documentation for this class was generated from the following file: