function GMapMacroTest::testEmptyMacro in GMap Module 6
Same name and namespace in other branches
- 7.2 tests/gmap.test \GMapMacroTest::testEmptyMacro()
- 7 tests/gmap.test \GMapMacroTest::testEmptyMacro()
File
- tests/
gmap.test, line 52
Class
Code
function testEmptyMacro() {
$macro = '';
$map = gmap_parse_macro($macro);
$this
->assertEqual(preg_match('/^auto\\d+map$/', $map['id']), 1, t('Testing ID injection'));
$this
->assertEqual(count($map), 1, t('Testing contents of map array.'));
$macro = '[gmap]';
$map = gmap_parse_macro($macro);
$this
->assertEqual(preg_match('/^auto\\d+map$/', $map['id']), 1, t('Testing ID injection'));
$this
->assertEqual(count($map), 1, t('Testing contents of map array.'));
$macro = '[gmap ]';
$map = gmap_parse_macro($macro);
$this
->assertEqual(preg_match('/^auto\\d+map$/', $map['id']), 1, t('Testing ID injection'));
$this
->assertEqual(count($map), 1, t('Testing contents of map array.'));
}