You are here

protected function DbLogViewsTest::getLogsEntriesTable in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/dblog/tests/src/Functional/DbLogViewsTest.php \Drupal\Tests\dblog\Functional\DbLogViewsTest::getLogsEntriesTable()

Find the Logs table in the DOM.

Return value

\SimpleXMLElement[] The return value of a xpath search.

Overrides DbLogTest::getLogsEntriesTable

File

core/modules/dblog/tests/src/Functional/DbLogViewsTest.php, line 39

Class

DbLogViewsTest
Generate events and verify dblog entries; verify user access to log reports based on permissions. Using the dblog UI generated by a View.

Namespace

Drupal\Tests\dblog\Functional

Code

protected function getLogsEntriesTable() {
  return $this
    ->xpath('.//table[contains(@class, "views-view-table")]/tbody/tr');
}