public function DbLogTest::verifySort in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/dblog/src/Tests/DbLogTest.php \Drupal\dblog\Tests\DbLogTest::verifySort()
Verifies the sorting functionality of the database logging reports table.
Parameters
string $sort: The sort direction.
string $order: The order by which the table should be sorted.
1 call to DbLogTest::verifySort()
- DbLogTest::testDbLog in core/
modules/ dblog/ src/ Tests/ DbLogTest.php - Tests Database Logging module functionality through interfaces.
File
- core/
modules/ dblog/ src/ Tests/ DbLogTest.php, line 263 - Contains \Drupal\dblog\Tests\DbLogTest.
Class
- DbLogTest
- Generate events and verify dblog entries; verify user access to log reports based on permissions.
Namespace
Drupal\dblog\TestsCode
public function verifySort($sort = 'asc', $order = 'Date') {
$this
->drupalGet('admin/reports/dblog', array(
'query' => array(
'sort' => $sort,
'order' => $order,
),
));
$this
->assertResponse(200);
$this
->assertText(t('Recent log messages'), 'DBLog report was displayed correctly and sorting went fine.');
}