diff --git a/core/modules/system/src/Tests/Pager/PagerTest.php b/core/modules/system/src/Tests/Pager/PagerTest.php index 6530026..0885872 100644 --- a/core/modules/system/src/Tests/Pager/PagerTest.php +++ b/core/modules/system/src/Tests/Pager/PagerTest.php @@ -140,8 +140,8 @@ protected function testMultiplePagers() { // that the active page for each pager element has the expected resulting // query. foreach ($test_data as $data) { + $this->drupalGet($GLOBALS['base_root'] . parse_url($this->getUrl())['path'] . $data['input_query'], ['external' => TRUE]); foreach ([0, 1, 4] as $pager_element) { - $this->drupalGet($GLOBALS['base_root'] . parse_url($this->getUrl())['path'] . $data['input_query'], ['external' => TRUE]); $active_page = $this->cssSelect("div.test-pager-{$pager_element} ul.pager__items li.is-active"); $destination = str_replace('%2C', ',', $active_page [0]->a['href'][0]->__toString()); // URL query string param is 0-indexed.