Skip to content

Commit

Permalink
Issue #3122112 by alexpott, longwave, jungle, hussainweb, catch, xjm,…
Browse files Browse the repository at this point in the history
… greg.1.anderson: Update dependencies for Drupal 8.9
  • Loading branch information
catch committed May 9, 2020
1 parent 682bd3c commit f3e6be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function testExceptionThrow() {
$messages = $id_map_plugin->getMessages(['url' => $invalid_url])->fetchAll();
$this->assertCount(1, $messages);
$message = reset($messages);
$this->assertEquals("Cannot read from non-readable stream ($invalid_url)", $message->message);
$this->assertEquals("Client error: `GET $invalid_url` resulted in a `404 Not Found` response ($invalid_url)", $message->message);
$this->assertEquals(MigrationInterface::MESSAGE_ERROR, $message->level);

// Check that the second row was migrated successfully.
Expand Down
2 changes: 1 addition & 1 deletion tests/Drupal/Tests/UiHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ protected function checkForMetaRefresh() {
if (!empty($refresh) && (!isset($this->maximumMetaRefreshCount) || $this->metaRefreshCount < $this->maximumMetaRefreshCount)) {
// Parse the content attribute of the meta tag for the format:
// "[delay]: URL=[page_to_redirect_to]".
if (preg_match('/\d+;\s*URL=(?<url>.*)/i', $refresh[0]->getAttribute('content'), $match)) {
if (preg_match('/\d+;\s*URL=\'?(?<url>[^\']*)/i', $refresh[0]->getAttribute('content'), $match)) {
$this->metaRefreshCount++;
return $this->drupalGet($this->getAbsoluteUrl(Html::decodeEntities($match['url'])));
}
Expand Down

0 comments on commit f3e6be0

Please sign in to comment.