only in patch2: unchanged: --- /dev/null +++ b/core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php @@ -0,0 +1,39 @@ +createBlockContent(); + + $block = $this->placeBlock('block_content:' . $block_content->uuid()); + + $user = $this->drupalCreateUser([ + 'administer blocks', + 'access contextual links', + ]); + $this->drupalLogin($user); + + $this->drupalGet(''); + $this->assertSession()->responseContains('data-contextual-id="block:block=' . $block->id() . ':langcode=en|block_content:block_content=' . $block_content->id() . ':'); + } + +} only in patch2: unchanged: --- /dev/null +++ b/core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php @@ -0,0 +1,38 @@ +createVocabulary(); + $term = $this->createTerm($vocabulary); + + $user = $this->drupalCreateUser([ + 'administer taxonomy', + 'access contextual links', + ]); + $this->drupalLogin($user); + + $this->drupalGet('taxonomy/term/' . $term->id()); + $this->assertSession()->responseContains('data-contextual-id="taxonomy_term:taxonomy_term=' . $term->id() . ':'); + } + +}