Skip to content
Snippets Groups Projects

ISTWCMS-4211: Test that taxonomy URL alias fields do not appear

1 file
+ 22
0
Compare changes
  • Side-by-side
  • Inline
@@ -311,6 +311,28 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertSession()->pageTextContains('Vocabulary is uw_vocab_catalog_categories');
$this->assertSession()->pageTextContains('Faculties and schools path pattern');
$this->assertSession()->pageTextContains('Vocabulary is uw_vocab_faculties_and_schools');
// Make sure URL alias fields off of taxonomy forms for all vocabularies.
$vocabs = [
'uw_vocab_audience',
'uw_vocab_blog_tags',
'uw_vocab_catalog_categories',
'uw_vocab_catalogs',
'uw_tax_event_tags',
'uw_tax_event_type',
'uw_vocab_faculties_and_schools',
'uw_vocab_news_tags',
];
foreach ($vocabs as $vocab) {
// Load the term-add page.
$this->drupalGet('admin/structure/taxonomy/manage/' . $vocab . '/add');
$this->assertSession()->statusCodeEquals(200);
// Check if URL alias field is off of taxomoy form.
$this->assertSession()->pageTextNotContains('Generate automatic URL alias');
$this->assertNoFieldById('edit-path-0-pathauto');
$this->assertSession()->pageTextNotContains('URL alias');
$this->assertNoFieldById('edit-path-0-alias');
}
}
/**
Loading