X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews_ui%2Ftests%2Fsrc%2FFunctional%2FDisplayPathTest.php;fp=web%2Fcore%2Fmodules%2Fviews_ui%2Fsrc%2FTests%2FDisplayPathTest.php;h=f8e58e719c70f79c8d9b62f91fabba76a26ce8dd;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hp=d1d1732bababa81bc4a054a8ffb0685fa6ccbf9d;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a;p=yaffs-website diff --git a/web/core/modules/views_ui/src/Tests/DisplayPathTest.php b/web/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php similarity index 94% rename from web/core/modules/views_ui/src/Tests/DisplayPathTest.php rename to web/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php index d1d1732ba..f8e58e719 100644 --- a/web/core/modules/views_ui/src/Tests/DisplayPathTest.php +++ b/web/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php @@ -1,8 +1,10 @@ drupalPlaceBlock('page_title_block'); + $this->placeBlock('page_title_block'); } /** @@ -158,9 +161,14 @@ class DisplayPathTest extends UITestBase { $this->drupalGet('admin/structure/views/nojs/display/test_page_display_menu/page_5/menu'); $this->assertResponse(200); $menu_parent = $this->xpath('//select[@id="edit-menu-parent"]'); - $menu_options = (array) $menu_parent[0]->option; + $menu_options = (array) $menu_parent[0]->findAll('css', 'option'); unset($menu_options['@attributes']); + // Convert array to make the next assertion possible. + $menu_options = array_map(function($element) { + return $element->getText(); + }, $menu_options); + $this->assertEqual([ '', '-- My account',