You are here

function TaxonomyMenuOperations::testTaxTermDelete in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Tests

Code

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');
}