diff --git a/core/modules/user/src/Tests/UserAdminListingTest.php b/core/modules/user/src/Tests/UserAdminListingTest.php index 65e9ef3..0a45c5e 100644 --- a/core/modules/user/src/Tests/UserAdminListingTest.php +++ b/core/modules/user/src/Tests/UserAdminListingTest.php @@ -69,8 +69,8 @@ public function testUserListing() { foreach ($result as $account) { $name = (string) $account->td[0]->span; $roles = array(); - if (isset($account->td[2]->div->ul)) { - foreach ($account->td[2]->div->ul->li as $element) { + if (isset($account->td[2]->ul)) { + foreach ($account->td[2]->ul->li as $element) { $roles[] = (string) $element; } } diff --git a/core/modules/views/src/Tests/Plugin/StyleHtmlListTest.php b/core/modules/views/src/Tests/Plugin/StyleHtmlListTest.php index 0642eff..65d5db7 100644 --- a/core/modules/views/src/Tests/Plugin/StyleHtmlListTest.php +++ b/core/modules/views/src/Tests/Plugin/StyleHtmlListTest.php @@ -33,24 +33,16 @@ function testDefaultRowClasses() { $output = $view->preview(); $output = drupal_render($output); - // Check that an empty class attribute is not added if the wrapper class is - // not set. - $this->assertTrue(strpos($output, '
') !== FALSE, 'Empty class is not added to DIV when class is not set'); - // Check that an empty class attribute is not added if the list class is // not set. $this->assertTrue(strpos($output, '