You are here

public function TagadelicTaxonomyTestCase::testBlockHasMoreLinkToPage in Tagadelic 7.2

File

tests/tagadelic_taxonomy.test, line 158

Class

TagadelicTaxonomyTestCase

Code

public function testBlockHasMoreLinkToPage() {
  $this
    ->enableBlock();
  $this
    ->createVocAndTags(11);
  $this
    ->drupalGet('node');
  $this
    ->assertHasXpath('//*/a[@class="more"]');
  $this
    ->assertLink("More tags");

  # This will cause a false-positive, as we have a link to tagadelic_taxonomy in the main-menu too!
  $this
    ->assertLinkByHref("tagadelic_taxonomy");
}