You are here

protected function TagadelicTaxonomyAdminWebTestCase::assertHasXpath in Tagadelic 7.2

1 call to TagadelicTaxonomyAdminWebTestCase::assertHasXpath()
TagadelicTaxonomyAdminWebTestCase::assertHasCheckbox in tests/tagadelic_taxonomy.admin.test

File

tests/tagadelic_taxonomy.admin.test, line 95

Class

TagadelicTaxonomyAdminWebTestCase

Code

protected 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);
}