private function DbLogTest::verifyBreadcrumbs in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/dblog/src/Tests/DbLogTest.php \Drupal\dblog\Tests\DbLogTest::verifyBreadcrumbs()
Generates and then verifies breadcrumbs.
1 call to DbLogTest::verifyBreadcrumbs()
- 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 230 - 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
private function verifyBreadcrumbs() {
// View the database log event page.
$wid = db_query('SELECT MIN(wid) FROM {watchdog}')
->fetchField();
$this
->drupalGet('admin/reports/dblog/event/' . $wid);
$xpath = '//nav[@class="breadcrumb"]/ol/li[last()]/a';
$this
->assertEqual(current($this
->xpath($xpath)), 'Recent log messages', 'DBLogs link displayed at breadcrumb in event page.');
}