geofield_openlayers.test in Geofield 7.2
Integration tests for geofield.module with openlayers.module
File
tests/geofield_openlayers.testView source
<?php
/**
* @file
* Integration tests for geofield.module with openlayers.module
*/
class GeofieldOpenlayersTestCase extends FieldTestCase {
public static function getInfo() {
return array(
'name' => 'Geofield/Openlayers',
'description' => "Integration tests for Openlayers",
'group' => 'Geofield',
);
}
function setUp() {
parent::setUp(array(
'geofield',
'field_test',
));
$this->admin_user = $this
->drupalCreateUser(array(
'administer filters',
));
$this->web_user = $this
->drupalCreateUser(array(
'access field_test content',
'administer field_test content',
'administer modules',
));
$this
->drupalLogin($this->web_user);
}
// Test fields.
/**
* Sample test.
*/
function testSampletest() {
$this
->assertTrue(1 == 1, "1 == 1");
}
}
Classes
Name![]() |
Description |
---|---|
GeofieldOpenlayersTestCase | @file Integration tests for geofield.module with openlayers.module |