protected function BaseTest::assertCountXpathItems in Plug 7
Asserts the number of items in a XPath selector.
Parameters
string $xpath: The XPath selector.
int $count: The expected number of items in the selector.
Return value
bool TRUE on pass, FALSE on fail.
1 call to BaseTest::assertCountXpathItems()
- BaseTest::assertExamplePageResults in modules/
plug_example/ lib/ Drupal/ plug_example/ Tests/ BaseTest.php - Checks the example page content.
File
- modules/
plug_example/ lib/ Drupal/ plug_example/ Tests/ BaseTest.php, line 86 - Contains Drupal\plug_example\Tests\BaseTest.
Class
Namespace
Drupal\plug_example\TestsCode
protected function assertCountXpathItems($xpath, $count) {
return $this
->assertEqual(count($this
->xpath($xpath)), $count);
}