function TaxonomyMenuOperations::testTaxTermDelete in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/taxonomy_menu/src/Tests/TaxonomyMenuOperations.php \Drupal\taxonomy_menu\Tests\TaxonomyMenuOperations::testTaxTermDelete()
Test deletion of taxonomy term.
File
- modules/
taxonomy_menu/ src/ Tests/ TaxonomyMenuOperations.php, line 147 - Definition of Drupal\taxonomy_menu\Tests\KeyService.
Class
- TaxonomyMenuOperations
- Tests the operations of Taxonomy Menu.
Namespace
Drupal\taxonomy_menu\TestsCode
function testTaxTermDelete() {
// Delete a term.
$this
->drupalGet('taxonomy/term/3/delete');
$edit = [];
$this
->drupalPostForm(NULL, $edit, t('Delete'));
// Check for it within the menu.
$this
->assertNoFieldByName('links[menu_plugin_id:taxonomy_menu.menu_link.test.3][enabled]', NULL, 'I should not expect to see enabled field for taxonomy term 3');
}