diff options
Diffstat (limited to 'modules/taxonomy/taxonomy.test')
-rw-r--r-- | modules/taxonomy/taxonomy.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index 87cfb4011..af50e5346 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -566,6 +566,14 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { $this->assertText($edit['name'], t('The randomly generated term name is present.')); $this->assertText($edit['description[value]'], t('The randomly generated term description is present.')); + // Did this page request display a 'term-listing-heading'? + $this->assertPattern('|class="term-listing-heading"|', 'Term page displayed the term description element.'); + // Check that it does NOT show a description when description is blank. + $term->description = ''; + taxonomy_term_save($term); + $this->drupalGet('taxonomy/term/' . $term->tid); + $this->assertNoPattern('|class="term-listing-heading"|', 'Term page did not display the term description when description was blank.'); + // Check that the term feed page is working. $this->drupalGet('taxonomy/term/' . $term->tid . '/feed'); |