xpath('.//table[contains(@class, "views-view-table")]/tbody/tr'); } /** * {@inheritdoc} */ protected function filterLogsEntries($type = NULL, $severity = NULL) { $query = []; if (isset($type)) { $query['type[]'] = $type; } if (isset($severity)) { $query['severity[]'] = $severity; } $this->drupalGet('admin/reports/dblog', ['query' => $query]); } /** * {@inheritdoc} */ public function testDBLogAddAndClear() { // Is necesary to create the basic_html format because if absent after // delete the logs, a new log entry is created indicating that basic_html // format do not exists. $basic_html_format = FilterFormat::create([ 'format' => 'basic_html', 'name' => 'Basic HTML', 'filters' => [ 'filter_html' => [ 'status' => 1, 'settings' => [ 'allowed_html' => '


', ], ], ], ]); $basic_html_format->save(); parent::testDBLogAddAndClear(); } }