diff options
author | David Rothstein <drothstein@gmail.com> | 2013-03-30 14:31:25 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-03-30 14:31:25 -0400 |
commit | 054c8abfea37f48cbfb3ff7bbc1ada97db1023a3 (patch) | |
tree | 80ca4c81f066ddd76943beb586094f4dace897d2 /modules/taxonomy/taxonomy.test | |
parent | c9d214811e6a6f433424d6ad342f55375a501abc (diff) | |
download | brdo-054c8abfea37f48cbfb3ff7bbc1ada97db1023a3.tar.gz brdo-054c8abfea37f48cbfb3ff7bbc1ada97db1023a3.tar.bz2 |
Issue #1242602 by swentel, JvE, babruix | Chi: Fixed Notices in taxonomy_autocomplete().
Diffstat (limited to 'modules/taxonomy/taxonomy.test')
-rw-r--r-- | modules/taxonomy/taxonomy.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index 123bdce40..270ed5802 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -722,6 +722,13 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { $this->assertFalse(field_info_field($field_name), format_string('Field %field_name does not exist.', array('%field_name' => $field_name))); $this->drupalGet('taxonomy/autocomplete/' . $field_name . '/' . $tag); $this->assertRaw($message, 'Autocomplete returns correct error message when the taxonomy field does not exist.'); + + // Test the autocomplete path without passing a field_name and terms. + // This should not trigger a PHP notice. + $field_name = ''; + $message = t("Taxonomy field @field_name not found.", array('@field_name' => $field_name)); + $this->drupalGet('taxonomy/autocomplete'); + $this->assertRaw($message, 'Autocomplete returns correct error message when no taxonomy field is given.'); } /** |