public function DbLogTest::verifySort in Drupal 10
Same name and namespace in other branches
- 8 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\DbLogTest::verifySort()
- 9 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\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.
File
- core/
modules/ dblog/ tests/ src/ Functional/ DbLogTest.php, line 405
Class
- DbLogTest
- Generate events and verify dblog entries; verify user access to log reports based on permissions.
Namespace
Drupal\Tests\dblog\FunctionalCode
public function verifySort($sort = 'asc', $order = 'Date') {
$this
->drupalGet('admin/reports/dblog', [
'query' => [
'sort' => $sort,
'order' => $order,
],
]);
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->pageTextContains('Recent log messages');
}