X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fblock_content%2Ftests%2Fsrc%2FFunctional%2FBlockContentContextualLinksTest.php;fp=web%2Fcore%2Fmodules%2Fblock_content%2Ftests%2Fsrc%2FFunctional%2FBlockContentContextualLinksTest.php;h=e4e1a48ac8fdfda1cb1e226ea8214e6f12ae6b01;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php b/web/core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php new file mode 100644 index 000000000..e4e1a48ac --- /dev/null +++ b/web/core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php @@ -0,0 +1,37 @@ +createBlockContent(); + + $block = $this->placeBlock('block_content:' . $block_content->uuid()); + + $user = $this->drupalCreateUser([ + 'administer blocks', + 'access contextual links', + ]); + $this->drupalLogin($user); + + $this->drupalGet(''); + $this->assertSession()->elementAttributeContains('css', 'div[data-contextual-id]', 'data-contextual-id', 'block:block=' . $block->id() . ':langcode=en|block_content:block_content=' . $block_content->id() . ':'); + } + +}