protected function TagadelicTaxonomyAdminWebTestCase::assertHasXpath in Tagadelic 7.2
1 call to TagadelicTaxonomyAdminWebTestCase::assertHasXpath()
File
- tests/
tagadelic_taxonomy.admin.test, line 95
Class
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);
}