19 declare(strict_types=1);
30 protected \ILIAS\Repository\Clipboard\ClipboardSessionRepository
$clipboard;
32 protected function setUp(): void
35 $this->clipboard = new \ILIAS\Repository\Clipboard\ClipboardSessionRepository();
36 $this->clipboard->clear();
49 $clipboard->setCmd(
"test");
50 $clipboard->setRefIds([4]);
51 $clipboard->setParent(5);
59 $clipboard->getRefIds()
63 $clipboard->getParent()
73 $clipboard->setCmd(
"test");
86 $clipboard->setRefIds([4]);
89 $clipboard->getRefIds()
99 $clipboard->setParent(5);
102 $clipboard->getParent()
112 $clipboard->setRefIds([4]);
115 $clipboard->hasEntries()
125 $clipboard->setRefIds([4]);
126 $clipboard->setCmd(
"cut");
129 $clipboard->hasEntries()
139 $clipboard->setRefIds([]);
140 $clipboard->setCmd(
"cut");
143 $clipboard->hasEntries()
testRefIds()
Test ref ids set/get.
testParent()
Test parent set/get.
testHasEntriesCmd()
Test hasEntries returns true if ref ids and cmd is given.
testCmd()
Test cmd set/get.
ILIAS Repository Clipboard ClipboardSessionRepository $clipboard
testHasEntriesNoCmd()
Test hasEntries returns false if ref ids, but no cmd is given.
testHasEntriesCmdEmptyRefIds()
Test hasEntries returns false if empty ref ids array and cmd is given.
Test clipboard repository.