settings_form.test in DB Maintenance 5.2
File
tests/settings_form.test
View source
<?php
class DBMaintenanceSettingsTest extends DrupalTestCase {
function get_info() {
return array(
'name' => 'Settings form',
'desc' => 'Check up on the settings form.',
'group' => 'DB Maintenance',
);
}
function testSettingsForm() {
$result = db_maintenance_admin_settings();
$this
->assertNotNull($result);
$this
->assertIsA($result, 'array');
$this
->assertNotNull($result['db_maintenance_log']);
$this
->assertNotNull($result['db_maintenance_cron_frequency']);
$this
->assertNotNull($result['buttons']['submit']);
}
}