function OpenLayersMapAlters::testOpenLayersMapAlters in Openlayers 6.2
Same name and namespace in other branches
- 7.2 tests/openlayers.test \OpenLayersMapAlters::testOpenLayersMapAlters()
File
- tests/
openlayers.test, line 255 - Main OpenLayers Test file
Class
- OpenLayersMapAlters
- Test Case for Map Alters
Code
function testOpenLayersMapAlters() {
$user = $this
->drupalCreateUser(array(
'administer openlayers',
));
$this
->drupalLogin($user);
// Styles
$this
->drupalGet('admin/build/openlayers/test');
$this
->assertText(t('OpenLayers preprocess map alter hook fired.'), t('Map preprocess alter fired correctly.'));
$this
->assertText(t('OpenLayers map alter hook fired.'), t('Map alter fired correctly.'));
}