You are here

public function ViewsExposedGroupsTestBase::assertViewsTableResultCount in Views exposed groups 7.2

Asserts the number of table rows in the rendered view.

Parameters

int $expected: The expected number of rows.

string $message: A message to use.

string $group: The assertion group.

1 call to ViewsExposedGroupsTestBase::assertViewsTableResultCount()
ViewsExposedGroupsUiTest::testViewsUi in tests/views_exposed_groups_ui.test
Asserts that the a user can group exposed forms.

File

tests/views_exposed_groups.test, line 105
Views Exposed Groups UI Test.

Class

ViewsExposedGroupsTestBase
Base test class for views_exposed_groups module tests.

Code

public function assertViewsTableResultCount($expected = 0, $message = '', $group = 'Browser') {
  $message = $message ? $message : 'Found the correct number of views results in the table display.';
  $rows = $this
    ->xpath('//table[contains(@class, :class)]/tbody/tr', [
    ':class' => 'views-table',
  ]);
  $this
    ->assertEqual($expected, count($rows), $message, $group);
}