You are here

public function GoogleApplianceSettingsSave::testCase in Google Search Appliance 7

File

testing/google_appliance.test, line 333
Implements automated simpletest routines for integration testing of the Google Appliance module.

Class

GoogleApplianceSettingsSave
test that known-good settings produce a settings save

Code

public function testCase() {

  // create the known-good settings
  $settings = array(
    'hostname' => 'http://www.mygsa.net',
    'collection' => 'default_collection',
    'frontend' => 'default_frontend',
    'timeout' => 10,
    'autofilter' => '1',
    'query_inspection' => FALSE,
    'search_title' => $this
      ->randomName(),
    'results_per_page' => 16,
  );
  $this
    ->drupalPost('admin/config/search/google_appliance/settings', $settings, t('Save configuration'));

  // look for success message
  $this
    ->assertText(t('The configuration options have been saved'), t('<b>{MTP:2.2.3.5}</b> Successful save message found after save attempt with good settings (successful pass).'));
}