Mercurial > hg > isophonics-drupal-site
diff core/modules/comment/tests/src/Functional/CommentInterfaceTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -5,7 +5,6 @@ use Drupal\comment\CommentManagerInterface; use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface; use Drupal\comment\Entity\Comment; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\Core\Entity\Entity\EntityViewMode; use Drupal\user\RoleInterface; @@ -166,7 +165,7 @@ $this->setCommentsPerPage(50); // Attempt to reply to an unpublished comment. - $reply_loaded->setPublished(FALSE); + $reply_loaded->setUnpublished(); $reply_loaded->save(); $this->drupalGet('comment/reply/node/' . $this->node->id() . '/comment/' . $reply_loaded->id()); $this->assertResponse(403); @@ -311,7 +310,7 @@ $this->assertRaw('<p>' . $comment_text . '</p>'); // Create a new comment entity view mode. - $mode = Unicode::strtolower($this->randomMachineName()); + $mode = mb_strtolower($this->randomMachineName()); EntityViewMode::create([ 'targetEntityType' => 'comment', 'id' => "comment.$mode",