You are here

function OpenLayersCore::testInclude in Openlayers 7.2

Test openlayers_include

File

tests/openlayers.test, line 39
Main OpenLayers Test file

Class

OpenLayersCore
Test the OpenLayers core functionality.

Code

function testInclude() {
  $user = $this
    ->drupalCreateUser(array(
    'administer openlayers',
  ));
  $this
    ->drupalLogin($user);

  // Go to test page and ensure includes happened.
  $this
    ->drupalGet('admin/structure/openlayers/test');
  $this
    ->assertRaw('openlayers.css', t('The OpenLayers CSS file was included'));
  $this
    ->assertRaw('openlayers.js', t('The OpenLayers JS file was included'));
}