diff --git a/core/modules/views/src/Tests/Plugin/DisplayTest.php b/core/modules/views/src/Tests/Plugin/DisplayTest.php index 3c52272..8262129 100644 --- a/core/modules/views/src/Tests/Plugin/DisplayTest.php +++ b/core/modules/views/src/Tests/Plugin/DisplayTest.php @@ -155,7 +155,9 @@ public function testGetAttachedDisplays() { // Both the feed_1 and the feed_2 display are attached to the page display. $view->setDisplay('page_1'); - $this->assertEqual($view->display_handler->getAttachedDisplays(), array('feed_1', 'feed_2')); + $attached_displays = $view->display_handler->getAttachedDisplays(); + sort($attached_displays); + $this->assertEqual($attached_displays, array('feed_1', 'feed_2')); $view->setDisplay('feed_1'); $this->assertEqual($view->display_handler->getAttachedDisplays(), array()); diff --git a/core/modules/views_ui/src/Tests/DisplayFeedTest.php b/core/modules/views_ui/src/Tests/DisplayFeedTest.php index 78a3fdc..220b59c 100644 --- a/core/modules/views_ui/src/Tests/DisplayFeedTest.php +++ b/core/modules/views_ui/src/Tests/DisplayFeedTest.php @@ -67,6 +67,7 @@ protected function checkFeedViewUi($view_name) { } } + sort($options); $this->assertEqual($options, array('default', 'page'), 'Make sure all displays appears as expected.'); // Post and save this and check the output.