ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 26 of file MepClipboardSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

MepClipboardSessionRepositoryTest::setUp ( )
protected

Definition at line 30 of file MepClipboardSessionRepositoryTest.php.

30 : void
31 {
32 parent::setUp();
33 $this->clipboard = new \ILIAS\MediaPool\Clipboard\ClipboardSessionRepository();
34 }

◆ tearDown()

MepClipboardSessionRepositoryTest::tearDown ( )
protected

Definition at line 36 of file MepClipboardSessionRepositoryTest.php.

36 : void
37 {
38 }

◆ testFolder()

MepClipboardSessionRepositoryTest::testFolder ( )

Definition at line 40 of file MepClipboardSessionRepositoryTest.php.

40 : void
41 {
43 $clipboard->setFolder(4);
44 $this->assertEquals(
45 4,
46 $clipboard->getFolder()
47 );
48 }
ILIAS MediaPool Clipboard ClipboardSessionRepository $clipboard

References $clipboard.

◆ testIds()

MepClipboardSessionRepositoryTest::testIds ( )

Definition at line 50 of file MepClipboardSessionRepositoryTest.php.

50 : void
51 {
53 $clipboard->setIds([3,5,7]);
54 $this->assertEquals(
55 [3,5,7],
56 $clipboard->getIds()
57 );
58 }

References $clipboard.

Field Documentation

◆ $clipboard

ILIAS MediaPool Clipboard ClipboardSessionRepository MepClipboardSessionRepositoryTest::$clipboard
protected

Definition at line 28 of file MepClipboardSessionRepositoryTest.php.

Referenced by testFolder(), and testIds().


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