Mercurial > hg > isophonics-drupal-site
diff core/modules/comment/tests/src/Functional/CommentFieldsTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/comment/tests/src/Functional/CommentFieldsTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/comment/tests/src/Functional/CommentFieldsTest.php Thu May 09 15:33:08 2019 +0100 @@ -55,7 +55,7 @@ // Test adding a field that defaults to CommentItemInterface::CLOSED. $this->addDefaultCommentField('node', 'test_node_type', 'who_likes_ponies', CommentItemInterface::CLOSED, 'who_likes_ponies'); - $field = FieldConfig::load('node.test_node_type.who_likes_ponies');; + $field = FieldConfig::load('node.test_node_type.who_likes_ponies'); $this->assertEqual($field->getDefaultValueLiteral()[0]['status'], CommentItemInterface::CLOSED); } @@ -113,7 +113,7 @@ // Go to the node first so that webuser2 see new comments. $this->drupalLogin($web_user2); - $this->drupalGet($node->urlInfo()); + $this->drupalGet($node->toUrl()); $this->drupalLogout(); // Test that buildCommentedEntityLinks() does not break when the 'comment' @@ -135,7 +135,7 @@ $link_info = $this->getDrupalSettings()['comment']['newCommentsLinks']['node']['comment2']['2']; $this->assertIdentical($link_info['new_comment_count'], 1); - $this->assertIdentical($link_info['first_new_comment_link'], $node->url('canonical', ['fragment' => 'new'])); + $this->assertIdentical($link_info['first_new_comment_link'], $node->toUrl('canonical', ['fragment' => 'new'])->toString()); } /**