ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssQuestionAbstractPageObjectCommandForwarderTest.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  $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  }
57 
58  public function testConstruct(): void
59  {
60  $this->assertInstanceOf(ilAssQuestionAbstractPageObjectCommandForwarder::class, $this->object);
61  }
62 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class assBaseTestCase.
global $lng
Definition: privfeed.php:31