ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilQuestionsPluginTest 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 ilQuestionsPluginTest:
+ Collaboration diagram for ilQuestionsPluginTest:

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

ilQuestionsPlugin $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 ilQuestionsPluginTest.php.

Member Function Documentation

◆ setUp()

ilQuestionsPluginTest::setUp ( )
protected

Definition at line 34 of file ilQuestionsPluginTest.php.

34  : void
35  {
36  parent::setUp();
37 
38  $db = $this->createMock(ilDBInterface::class);
39  $component_repository = $this->createConfiguredMock(ilComponentRepositoryWrite::class, [
40  'hasPluginId' => true,
41  ]);
42 
43  $this->object = new class ($db, $component_repository, 0) extends ilQuestionsPlugin {
44  public function getQuestionType(): void
45  {
46  }
47 
48  public function getQuestionTypeTranslation(): string
49  {
50  return '';
51  }
52  };
53  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testConstruct()

ilQuestionsPluginTest::testConstruct ( )

Definition at line 55 of file ilQuestionsPluginTest.php.

55  : void
56  {
57  $this->assertInstanceOf(ilQuestionsPlugin::class, $this->object);
58  }

Field Documentation

◆ $backupGlobals

ilQuestionsPluginTest::$backupGlobals = false
protected

Definition at line 30 of file ilQuestionsPluginTest.php.

◆ $object

ilQuestionsPlugin ilQuestionsPluginTest::$object
private

Definition at line 32 of file ilQuestionsPluginTest.php.


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