ILIAS  release_8 Revision v8.24
ilMapGUITest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21use PHPUnit\Framework\TestCase;
22
23class ilMapGUITest extends TestCase
24{
25 protected function setUp(): void
26 {
27 $this->gui = new class () extends ilMapGUI {
28 public function __construct()
29 {
30 }
31
32 public function getHtml(): string
33 {
34 }
35
36 public function getUserListHtml(): string
37 {
38 }
39 };
40 }
41
45 public function testSettersAndGetters($name, $value): void
46 {
47 $set = "set$name";
48 $get = "get$name";
49 $this->gui->$set($value);
50 $this->assertEquals($value, $this->gui->$get());
51 }
52
53 public function properties(): array
54 {
55 return [
56 ["MapId", "a_map_id"],
57 ["Width", "a_width"],
58 ["Height", "a_height"],
59 ["Latitude", "a_latitude"],
60 ["Longitude", "a_longitude"],
61 ["Zoom", 50],
62 ["EnableTypeControl", true],
63 ["EnableNavigationControl", false],
64 ["EnableUpdateListener", true],
65 ["EnableLargeMapControl", false],
66 ["EnableCentralMarker", true]
67 ];
68 }
69}
testSettersAndGetters($name, $value)
@dataProvider properties
User interface class for maps.
if($format !==null) $name
Definition: metadata.php:247
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc