summaryrefslogtreecommitdiff
path: root/modules/search/search.test
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-04-28 23:20:21 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-04-28 23:20:21 -0700
commit9afbc13d6bb62ee93e4ceabc6d9e22b61dcd7e91 (patch)
tree781fed4c8c5d10f7423e8c31aae41a5e979a45f9 /modules/search/search.test
parenta7d43f3460a97ad3c9b1cb23f7d374a4994837a3 (diff)
downloadbrdo-9afbc13d6bb62ee93e4ceabc6d9e22b61dcd7e91.tar.gz
brdo-9afbc13d6bb62ee93e4ceabc6d9e22b61dcd7e91.tar.bz2
Issue #1527988 by Niklas Fiekas: Fixed Missing or legacy number validation.
Diffstat (limited to 'modules/search/search.test')
-rw-r--r--modules/search/search.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/search/search.test b/modules/search/search.test
index 26c663e71..eeb6bf21b 100644
--- a/modules/search/search.test
+++ b/modules/search/search.test
@@ -1461,6 +1461,17 @@ class SearchConfigSettingsForm extends DrupalWebTestCase {
$this->assertText(t('The index will be rebuilt'));
$this->drupalGet('admin/config/search/settings');
$this->assertText(t('There is 1 item left to index.'));
+
+ // Test that the form saves with the default values.
+ $this->drupalPost('admin/config/search/settings', array(), t('Save configuration'));
+ $this->assertText(t('The configuration options have been saved.'), 'Form saves with the default values.');
+
+ // Test that the form does not save with an invalid word length.
+ $edit = array(
+ 'minimum_word_size' => $this->randomName(3),
+ );
+ $this->drupalPost('admin/config/search/settings', $edit, t('Save configuration'));
+ $this->assertNoText(t('The configuration options have been saved.'), 'Form does not save with an invalid word length.');
}
/**