public function GmapDefaultsTestCase::testGmapDefaults in GMap Module 7.2
File
- tests/
oopmigration.test, line 114 - unit tests for refactoring steps
Class
Code
public function testGmapDefaults() {
include_once drupal_get_path('module', 'gmap') . '/tests/inc/gmap_defaults.inc';
include_once drupal_get_path('module', 'gmap') . '/lib/Drupal/gmap/GmapDefaults.php';
// legacy_gmap_defaults()
$check = \tests\inc\legacy_gmap_defaults();
$result = GmapDefaults::getInstance()
->getDefaults();
$this
->assertEqual($check, $result);
// legacy__gmap_base_js()
$check = \tests\inc\legacy__gmap_base_js();
$result = GmapDefaults::getInstance()
->getBaseJs();
$this
->assertEqual($check, $result);
// legacy__gmap_base_js()
$check = \tests\inc\legacy__gmap_base_js();
$result = _gmap_base_js();
$this
->assertEqual($check, $result);
}