Mercurial > hg > isophonics-drupal-site
view core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line source
<?php namespace Drupal\Tests\taxonomy\Functional; /** * Tests views contextual links on terms. * * @group taxonomy */ class TermContextualLinksTest extends TaxonomyTestBase { /** * {@inheritdoc} */ public static $modules = [ 'contextual', ]; /** * Tests contextual links. */ public function testTermContextualLinks() { $vocabulary = $this->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() . ':'); } }