diff --git a/core/modules/comment/tests/src/Unit/CommentManagerTest.php b/core/modules/comment/tests/src/Unit/CommentManagerTest.php index 7fe1c16..f93f807 100644 --- a/core/modules/comment/tests/src/Unit/CommentManagerTest.php +++ b/core/modules/comment/tests/src/Unit/CommentManagerTest.php @@ -3,6 +3,7 @@ namespace Drupal\Tests\comment\Unit; use Drupal\comment\CommentManager; +use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\Tests\UnitTestCase; /** @@ -23,8 +24,8 @@ public function testGetFields() { ->method('getClass') ->will($this->returnValue('Node')); $entity_type->expects($this->any()) - ->method('isSubclassOf') - ->with('\Drupal\Core\Entity\FieldableEntityInterface') + ->method('entityClassImplements') + ->with(FieldableEntityInterface::class) ->will($this->returnValue(TRUE)); $entity_manager = $this->getMock('Drupal\Core\Entity\EntityManagerInterface');