ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilQuestionsPluginTest.php
Go to the documentation of this file.
1<?php
2
29{
30 protected $backupGlobals = false;
31
33
34 protected function setUp(): 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 }
54
55 public function testConstruct(): void
56 {
57 $this->assertInstanceOf(ilQuestionsPlugin::class, $this->object);
58 }
59}
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...