X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FTermContextualLinksTest.php;fp=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FTermContextualLinksTest.php;h=997e698b9eff62a431c3edbaf6e2eed1627f763e;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php b/web/core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php new file mode 100644 index 000000000..997e698b9 --- /dev/null +++ b/web/core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php @@ -0,0 +1,36 @@ +createVocabulary(); + $term = $this->createTerm($vocabulary); + + $user = $this->drupalCreateUser([ + 'administer taxonomy', + 'access contextual links', + ]); + $this->drupalLogin($user); + + $this->drupalGet('taxonomy/term/' . $term->id()); + $this->assertSession()->elementAttributeContains('css', 'div[data-contextual-id]', 'data-contextual-id', 'taxonomy_term:taxonomy_term=' . $term->id() . ':'); + } + +}