Skip to content
Snippets Groups Projects
Commit 1916c77a authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1836204 by sun, dawehner: Fixed Random test failure in...

Issue #1836204 by sun, dawehner: Fixed Random test failure in Drupal\system\Tests\Menu\BreadcrumbTest.
parent 60e3f5c1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -111,10 +111,15 @@ function testBreadCrumbs() {
'admin/structure/menu' => t('Menus'),
);
$this->assertBreadcrumb('admin/structure/menu/manage/tools', $trail);
$mlid_node_add = db_query('SELECT mlid FROM {menu_links} WHERE link_path = :href AND module = :module', array(
':href' => 'node/add',
':module' => 'system',
))->fetchField();
$trail += array(
'admin/structure/menu/manage/tools' => t('Tools'),
);
$this->assertBreadcrumb("admin/structure/menu/item/6/edit", $trail);
$this->assertBreadcrumb("admin/structure/menu/item/$mlid_node_add/edit", $trail);
$this->assertBreadcrumb('admin/structure/menu/manage/tools/edit', $trail);
$this->assertBreadcrumb('admin/structure/menu/manage/tools/add', $trail);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment