You are here

settings_form.test in DB Maintenance 5.2

Same filename and directory in other branches
  1. 5 tests/settings_form.test

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']);
  }

}

Classes