function WeatherEsParserTestCase::testBlockInfo in Weather_es 7
Test creating a Weather_es block
File
- ./
weather_es.test, line 41 - Tests parsing of raw XML AEMET data.
Class
- WeatherEsParserTestCase
- @file Tests parsing of raw XML AEMET data.
Code
function testBlockInfo() {
$info = module_invoke('weather_es', 'block_info');
$this
->assertEqual(2, count($info), t('Module defines two blocks: system and user blocks.'));
$this
->assertTrue(isset($info['system']), t('Weather_es system block exists.'));
$this
->assertTrue(isset($info['user']), t('Weather_es user block exists.'));
}