X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FFunctional%2FCommentInterfaceTest.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FFunctional%2FCommentInterfaceTest.php;h=a2c0d4a55e59ddd2cd34420c90dc1db108bf931d;hp=7342633bbcf41536e6463ca91003235e698fe599;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php b/web/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php index 7342633bb..a2c0d4a55 100644 --- a/web/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php +++ b/web/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php @@ -5,7 +5,6 @@ namespace Drupal\Tests\comment\Functional; 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 @@ class CommentInterfaceTest extends CommentTestBase { $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 @@ class CommentInterfaceTest extends CommentTestBase { $this->assertRaw('

' . $comment_text . '

'); // Create a new comment entity view mode. - $mode = Unicode::strtolower($this->randomMachineName()); + $mode = mb_strtolower($this->randomMachineName()); EntityViewMode::create([ 'targetEntityType' => 'comment', 'id' => "comment.$mode",