openlayers.test in Openlayers 7.3
Same filename and directory in other branches
Tests for openlayers.module.
File
tests/openlayers.testView source
<?php
/**
* @file
* Tests for openlayers.module.
*/
class OpenlayersBaseTestCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
// Note: getInfo() strings are not translated with t().
return array(
'name' => 'Openlayers Test Case 1',
'description' => 'Ensure that the openlayers module functions properly.',
'group' => 'Openlayers',
);
}
public function setUp() {
// Enable any modules required for the test. This should be an array of
// module names.
parent::setUp(array(
'geofield',
));
// Create and log in our admin user.
/*
$this->admin_user = $this->drupalCreateUser([
'administer openlayers',
]);
$this->drupalLogin($this->admin_user);
*/
}
/**
* An example test for Openlayers module.
*/
public function testOpenlayersExample() {
}
}
Classes
Name | Description |
---|---|
OpenlayersBaseTestCase | @file Tests for openlayers.module. |