You are here

function OpenLayersMapAlters::testOpenLayersMapAlters in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 tests/openlayers.test \OpenLayersMapAlters::testOpenLayersMapAlters()

File

tests/openlayers.test, line 333
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/structure/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.'));
}