| @@ 149-157 (lines=9) @@ | ||
| 146 | /** |
|
| 147 | * |
|
| 148 | */ |
|
| 149 | public function testGetInfoWindowTemplate() |
|
| 150 | { |
|
| 151 | /** @var Locator $object */ |
|
| 152 | $object = Injector::inst()->create(Locator::class); |
|
| 153 | $template = $object->getInfoWindowTemplate(); |
|
| 154 | // get rid of cache ending |
|
| 155 | $template = preg_replace('/\?.*$/', '', $template); |
|
| 156 | $this->assertStringEndsWith('client/infowindow-description.html', $template); |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * |
|
| @@ 162-170 (lines=9) @@ | ||
| 159 | /** |
|
| 160 | * |
|
| 161 | */ |
|
| 162 | public function testGetListTemplate() |
|
| 163 | { |
|
| 164 | /** @var Locator $object */ |
|
| 165 | $object = Injector::inst()->create(Locator::class); |
|
| 166 | $template = $object->getListTemplate(); |
|
| 167 | // get rid of cache ending |
|
| 168 | $template = preg_replace('/\?.*$/', '', $template); |
|
| 169 | $this->assertStringEndsWith('client/location-list-description.html', $template); |
|
| 170 | } |
|
| 171 | } |
|
| 172 | ||