diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php index 70d3ac40b5..aad3176530 100644 --- a/core/modules/node/src/Tests/NodeTypeTest.php +++ b/core/modules/node/src/Tests/NodeTypeTest.php @@ -99,11 +99,18 @@ public function testNodeTypeEditing() { $this->assertRaw('Title', 'Title field was found.'); $this->assertRaw('Body', 'Body field was found.'); + $front_page_path = Url::fromRoute('')->toString(); + // Rename the title field. $edit = [ 'title_label' => 'Foo', ]; $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type')); + $this->assertBreadcrumb('admin/structure/types/manage/page/fields', [ + $front_page_path => 'Home', + 'admin/structure/types' => 'Content types', + 'admin/structure/types/manage/page' => 'Page', + ]); $this->drupalGet('node/add/page'); $this->assertRaw('Foo', 'New title label was displayed.'); @@ -115,6 +122,11 @@ public function testNodeTypeEditing() { 'description' => 'Lorem ipsum.', ]; $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type')); + $this->assertBreadcrumb('admin/structure/types/manage/page/fields', [ + $front_page_path => 'Home', + 'admin/structure/types' => 'Content types', + 'admin/structure/types/manage/page' => 'Bar', + ]); $this->drupalGet('node/add'); $this->assertRaw('Bar', 'New name was displayed.'); @@ -138,7 +150,6 @@ public function testNodeTypeEditing() { $this->drupalPostForm('admin/structure/types/manage/page/fields/node.page.body/delete', [], t('Delete')); // Resave the settings for this type. $this->drupalPostForm('admin/structure/types/manage/page', [], t('Save content type')); - $front_page_path = Url::fromRoute('')->toString(); $this->assertBreadcrumb('admin/structure/types/manage/page/fields', [ $front_page_path => 'Home', 'admin/structure/types' => 'Content types',