private function DbLogTest::verifyBreadcrumbs in Drupal 10
Same name and namespace in other branches
- 8 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\DbLogTest::verifyBreadcrumbs()
- 9 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\DbLogTest::verifyBreadcrumbs()
Generates and then verifies breadcrumbs.
File
- core/
modules/ dblog/ tests/ src/ Functional/ DbLogTest.php, line 366
Class
- DbLogTest
- Generate events and verify dblog entries; verify user access to log reports based on permissions.
Namespace
Drupal\Tests\dblog\FunctionalCode
private function verifyBreadcrumbs() {
// View the database log event page.
$query = Database::getConnection()
->select('watchdog');
$query
->addExpression('MIN([wid])');
$wid = $query
->execute()
->fetchField();
$trail = [
'' => 'Home',
'admin' => 'Administration',
'admin/reports' => 'Reports',
'admin/reports/dblog' => 'Recent log messages',
];
$this
->assertBreadcrumb('admin/reports/dblog/event/' . $wid, $trail);
}