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