ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References $clipboard.

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

◆ testIds()

MepClipboardSessionRepositoryTest::testIds ( )

Definition at line 50 of file MepClipboardSessionRepositoryTest.php.

References $clipboard.

50  : void
51  {
53  $clipboard->setIds([3,5,7]);
54  $this->assertEquals(
55  [3,5,7],
56  $clipboard->getIds()
57  );
58  }
ILIAS MediaPool Clipboard ClipboardSessionRepository $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: