You are here

private function TagadelicTaxonomyTestCase::assertHasXpath in Tagadelic 7.2

assertHasXpath Asserts the existence of an xpath

@scope private @returns Boolean Boolean Assertion-result

3 calls to TagadelicTaxonomyTestCase::assertHasXpath()
TagadelicTaxonomyTestCase::assertHasTag in tests/tagadelic_taxonomy.test
TagadelicTaxonomyTestCase::testBlockHasMoreLinkToPage in tests/tagadelic_taxonomy.test
TagadelicTaxonomyTestCase::testHasClickableLink in tests/tagadelic_taxonomy.test

File

tests/tagadelic_taxonomy.test, line 275

Class

TagadelicTaxonomyTestCase

Code

private function assertHasXpath($xpath, $message = '', $group = 'Other') {
  if (empty($message)) {
    $message = "xpath '{$xpath}' not found.";
  }
  $xpath = $this
    ->xpath($xpath);
  $truthiness = count($xpath) > 0;
  return $this
    ->assertTrue($truthiness, $message, $group);
}