ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMapGUITest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class ilMapGUITest extends TestCase
24 {
25  protected ilMapGUI $gui;
26 
27  protected function setUp(): void
28  {
29  $this->gui = new class () extends ilMapGUI {
30  public function __construct()
31  {
32  }
33 
34  public function getHtml(): string
35  {
36  }
37 
38  public function getUserListHtml(): string
39  {
40  }
41  };
42  }
43 
47  public function testSettersAndGetters($name, $value): void
48  {
49  $set = "set$name";
50  $get = "get$name";
51  $this->gui->$set($value);
52  $this->assertEquals($value, $this->gui->$get());
53  }
54 
55  public static function properties(): array
56  {
57  return [
58  ["MapId", "a_map_id"],
59  ["Width", "a_width"],
60  ["Height", "a_height"],
61  ["Latitude", "a_latitude"],
62  ["Longitude", "a_longitude"],
63  ["Zoom", 50],
64  ["EnableTypeControl", true],
65  ["EnableNavigationControl", false],
66  ["EnableUpdateListener", true],
67  ["EnableLargeMapControl", false],
68  ["EnableCentralMarker", true]
69  ];
70  }
71 }
static properties()
testSettersAndGetters($name, $value)
properties
ilMapGUI $gui
__construct(Container $dic, ilPlugin $plugin)
User interface class for maps.