ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilQuestionBrowserTableGUITest.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 $this->addGlobal_uiRenderer();
39 $this->addGlobal_uiFactory();
40
41 $object = new class () {
42 private object $object;
43
44 public function __construct()
45 {
46 $this->object = new class () {
47 public function getRefId(): int
48 {
49 return 0;
50 }
51 };
52 }
53
54 public function getObject(): object
55 {
56 return $this->object;
57 }
58 };
59
60 $this->object = new ilQuestionBrowserTableGUI($object, '', false, false, [], false);
61 }
62
63 public function testConstruct(): void
64 {
65 $this->assertInstanceOf(ilQuestionBrowserTableGUI::class, $this->object);
66 }
67}
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addGlobal_uiRenderer()
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc