Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / serialization / tests / src / Unit / Normalizer / EntityNormalizerTest.php
index 689d654bd9e9d4e82ec52f72259c25a11417b5dc..a5b0000b4f06284eb2c4d9651c445f060c991b92 100644 (file)
@@ -119,7 +119,7 @@ class EntityNormalizerTest extends UnitTestCase {
       ->with('bundle')
       ->will($this->returnValue('test_type'));
     $entity_type->expects($this->once())
-      ->method('isSubClassOf')
+      ->method('entityClassImplements')
       ->with(FieldableEntityInterface::class)
       ->willReturn(TRUE);
 
@@ -240,7 +240,7 @@ class EntityNormalizerTest extends UnitTestCase {
       ->with('bundle')
       ->will($this->returnValue('test_type'));
     $entity_type->expects($this->once())
-      ->method('isSubClassOf')
+      ->method('entityClassImplements')
       ->with(FieldableEntityInterface::class)
       ->willReturn(TRUE);
 
@@ -303,7 +303,7 @@ class EntityNormalizerTest extends UnitTestCase {
 
     $entity_type = $this->getMock('Drupal\Core\Entity\EntityTypeInterface');
     $entity_type->expects($this->once())
-      ->method('isSubClassOf')
+      ->method('entityClassImplements')
       ->with(FieldableEntityInterface::class)
       ->willReturn(TRUE);
     $entity_type->expects($this->once())
@@ -376,7 +376,7 @@ class EntityNormalizerTest extends UnitTestCase {
 
     $entity_type = $this->getMock('Drupal\Core\Entity\EntityTypeInterface');
     $entity_type->expects($this->once())
-      ->method('isSubClassOf')
+      ->method('entityClassImplements')
       ->with(FieldableEntityInterface::class)
       ->willReturn(FALSE);