ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssQuestionAbstractPageObjectCommandForwarderTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilAssQuestionAbstractPageObjectCommandForwarderTest:
+ Collaboration diagram for ilAssQuestionAbstractPageObjectCommandForwarderTest:

Public Member Functions

 testConstruct ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from assBaseTestCase
 setUp ()
 
 tearDown ()
 
 getIRSSMock ()
 

Protected Attributes

 $backupGlobals = false
 
- Protected Attributes inherited from assBaseTestCase
Container $dic = null
 

Private Attributes

ilAssQuestionAbstractPageObjectCommandForwarder $object
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Unit tests

Author
Matheus Zych mzych.nosp@m.@dat.nosp@m.abay..nosp@m.de

\

This test was automatically generated.

Definition at line 28 of file ilAssQuestionAbstractPageObjectCommandForwarderTest.php.

Member Function Documentation

◆ setUp()

ilAssQuestionAbstractPageObjectCommandForwarderTest::setUp ( )
protected

Reimplemented from assBaseTestCase.

Definition at line 34 of file ilAssQuestionAbstractPageObjectCommandForwarderTest.php.

34 : void
35 {
36 parent::setUp();
37
38 $questionOBJ = $this->createMock(assQuestion::class);
39 $ctrl = $this->createMock(ilCtrl::class);
40 $tabs = $this->createMock(ilTabsGUI::class);
41 $lng = $this->createMock(ilLanguage::class);
42
43 $this->object = new class ($questionOBJ, $ctrl, $tabs, $lng) extends ilAssQuestionAbstractPageObjectCommandForwarder {
44 public function forward(): void
45 {
46 }
47
48 protected function ensurePageObjectExists($pageObjectType, $pageObjectId): void
49 {
50 }
51
52 protected function getPageObjectGUI($pageObjectType, $pageObjectId): void
53 {
54 }
55 };
56 }
global $lng
Definition: privfeed.php:31

References $lng.

◆ testConstruct()

ilAssQuestionAbstractPageObjectCommandForwarderTest::testConstruct ( )

Definition at line 58 of file ilAssQuestionAbstractPageObjectCommandForwarderTest.php.

58 : void
59 {
60 $this->assertInstanceOf(ilAssQuestionAbstractPageObjectCommandForwarder::class, $this->object);
61 }

Field Documentation

◆ $backupGlobals

ilAssQuestionAbstractPageObjectCommandForwarderTest::$backupGlobals = false
protected

◆ $object

ilAssQuestionAbstractPageObjectCommandForwarder ilAssQuestionAbstractPageObjectCommandForwarderTest::$object
private

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