@@ 46-56 (lines=11) @@ | ||
43 | /* |
|
44 | Toggle as to whether or not to include a style= attribute with width/height |
|
45 | */ |
|
46 | public function testSetShowInlineMapDivStyle() |
|
47 | { |
|
48 | $map = $this->getMap(); |
|
49 | $map->setShowInlineMapDivStyle(true); |
|
50 | $html = $map->forTemplate(); |
|
51 | $expected = 'style="width:100%; height: 400px;"'; |
|
52 | $this->assertContains($expected, $html); |
|
53 | ||
54 | $map->setShowInlineMapDivStyle(false); |
|
55 | $html = $map->forTemplate(); |
|
56 | $this->assertNotContains($expected, $html); |
|
57 | } |
|
58 | ||
59 | public function testSetAdditionalCSSClasses() |
|
@@ 318-334 (lines=17) @@ | ||
315 | $this->markTestSkipped('TODO'); |
|
316 | } |
|
317 | ||
318 | public function testSetDefaultHideMarker() |
|
319 | { |
|
320 | $map = $this->getMapMultipleItems(); |
|
321 | $map->setDefaultHideMarker(false); |
|
322 | $html = $map->forTemplate(); |
|
323 | $this->assertContains( |
|
324 | 'data-defaulthidemarker=false', |
|
325 | $html |
|
326 | ); |
|
327 | ||
328 | $map = $this->getMapMultipleItems(); |
|
329 | $map->setDefaultHideMarker(true); |
|
330 | $html = $map->forTemplate(); |
|
331 | $this->assertContains( |
|
332 | 'data-defaulthidemarker=1', |
|
333 | $html |
|
334 | ); |
|
335 | } |
|
336 | ||
337 | public function testGetContent() |