Mercurial > hg > cmmr2012-drupal-site
diff core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php Thu May 09 15:34:47 2019 +0100 @@ -3,6 +3,7 @@ namespace Drupal\Tests\comment\Unit; use Drupal\comment\CommentStatistics; +use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Tests\UnitTestCase; /** @@ -82,7 +83,7 @@ ->method('select') ->will($this->returnValue($this->select)); - $this->commentStatistics = new CommentStatistics($this->database, $this->getMock('Drupal\Core\Session\AccountInterface'), $this->getMock('Drupal\Core\Entity\EntityManagerInterface'), $this->getMock('Drupal\Core\State\StateInterface')); + $this->commentStatistics = new CommentStatistics($this->database, $this->getMock('Drupal\Core\Session\AccountInterface'), $this->createMock(EntityTypeManagerInterface::class), $this->getMock('Drupal\Core\State\StateInterface'), $this->database); } /**