diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php b/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php index 786be98..75fbef1 100644 --- a/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php @@ -159,6 +159,8 @@ public function testCloneDisplay() { $this->drupalPost(NULL, array(), 'clone as Block'); $this->assertLinkByHref($path_prefix . '/block_1', 0, 'Make sure after cloning the new display appears in the UI'); $this->assertUrl($path_prefix . '/block_1', array(), 'The user got redirected to the new display.'); + $this->assertText(t('Block settings')); + $this->assertNoText(t('Page settings')); $this->drupalPost(NULL, array(), t('Save')); $view = views_get_view($view['name']); @@ -168,6 +170,7 @@ public function testCloneDisplay() { $this->assertTrue($displays['page_2'], 'The new page display got saved.'); $this->assertTrue($displays['block_1'], 'The new block display got saved.'); $this->assertEqual($displays['page_2']->display['display_title'], 'Page'); + $this->assertEqual($displays['block_1']->display['display_plugin'], 'block'); $this->assertEqual($displays['block_1']->display['display_title'], 'Block', 'The new display title got generated as expected.'); $this->assertEqual($displays['block_1']->getOption('title'), $random_title, 'The overridden title option from the display got copied into the clone'); $this->assertEqual($displays['block_1']->getOption('css_class'), $random_css, 'The overridden css_class option from the display got copied into the clone');