You are here

private function TagadelicTaxonomyTestCase::assertAmountTagsOnPage in Tagadelic 7.2

2 calls to TagadelicTaxonomyTestCase::assertAmountTagsOnPage()
TagadelicTaxonomyTestCase::testBlockHasMaxTwelveTags in tests/tagadelic_taxonomy.test
TagadelicTaxonomyTestCase::testHasMaxsixtyTags in tests/tagadelic_taxonomy.test

File

tests/tagadelic_taxonomy.test, line 289

Class

TagadelicTaxonomyTestCase

Code

private function assertAmountTagsOnPage($expected_amount, $message = '', $group = 'Other') {
  $amount = count($this
    ->xpath("//*/ul[@class='tag-cloud']/li"));
  if (!$message) {
    $message = t("Expected {$expected_amount} Tags, found {$amount}");
  }
  $this
    ->assertEqual($expected_amount, $amount, $message);
}