19 declare(strict_types=1);
34 protected function setUp(): void
39 $this->addGlobal_ilTabs();
43 $this->createMock(\ilLanguage::class),
44 $this->createMock(\ilCtrl::class),
45 $this->createMock(\ilAccess::class),
46 $this->createMock(\ilTestAccess::class),
47 $this->getTestObjMock(),
48 $this->createMock(\ilTestObjectiveOrientedContainer::class),
49 $this->createMock(\ilTestSession::class)
55 $this->assertInstanceOf(TabsManager::class, $this->testObj);
61 $DIC[
'ilTabs']->expects($this->exactly(2))->method(
'activateTab');
64 $this->testObj->activateTab(
'randomString');
70 $DIC[
'ilTabs']->expects($this->exactly(7))->method(
'activateSubTab');
79 $this->testObj->activateSubTab(
'randomString');
84 $parent_back_label =
'Test';
85 $this->testObj->setParentBackLabel($parent_back_label);
86 $this->assertEquals($parent_back_label, $this->testObj->getParentBackLabel());
91 $parent_back_href =
'Test';
92 $this->testObj->setParentBackHref($parent_back_href);
93 $this->assertEquals($parent_back_href, $this->testObj->getParentBackHref());
98 $this->assertFalse($this->testObj->hasParentBackLink());
99 $parent_back_x =
'Test';
101 $this->testObj->setParentBackHref($parent_back_x);
102 $this->assertFalse($this->testObj->hasParentBackLink());
104 $this->testObj->setParentBackLabel($parent_back_x);
105 $this->assertTrue($this->testObj->hasParentBackLink());
const TAB_ID_PARTICIPANTS
const TAB_ID_YOUR_RESULTS
const SUBTAB_ID_MY_RESULTS
test_instantiateObject_shouldReturnInstance()
const SUBTAB_ID_QST_PAGE_VIEW
const SUBTAB_ID_HIGHSCORE
const SUBTAB_ID_QST_LIST_VIEW
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SUBTAB_ID_SKILL_RESULTS
const SUBTAB_ID_LO_RESULTS
const SUBTAB_ID_MY_SOLUTIONS