X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FEntityFieldManagerTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FEntityFieldManagerTest.php;h=a7f7eb41aa7e2f7e6cb3865735f9576d4e190ee9;hp=4985470de0aadf5cf7b5c5f48fd69dddc02c976d;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php b/web/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php index 4985470de..a7f7eb41a 100644 --- a/web/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php +++ b/web/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php @@ -439,7 +439,6 @@ class EntityFieldManagerTest extends UnitTestCase { }) ->shouldBeCalled(); - $this->assertSame($expected, $this->entityFieldManager->getFieldStorageDefinitions('test_entity_type')); $this->entityFieldManager->testClearEntityFieldInfo(); $this->assertSame($expected, $this->entityFieldManager->getFieldStorageDefinitions('test_entity_type')); @@ -542,6 +541,7 @@ class EntityFieldManagerTest extends UnitTestCase { $this->entityType->getKeys()->willReturn($entity_keys + ['default_langcode' => 'default_langcode']); $this->entityType->entityClassImplements(FieldableEntityInterface::class)->willReturn(TRUE); $this->entityType->isTranslatable()->willReturn(FALSE); + $this->entityType->isRevisionable()->willReturn(FALSE); $this->entityType->getProvider()->willReturn('the_provider'); $this->entityType->id()->willReturn('the_entity_id'); @@ -651,6 +651,7 @@ class EntityFieldManagerTest extends UnitTestCase { $entity_type->getKeys()->willReturn(['default_langcode' => 'default_langcode']); $entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(TRUE); $entity_type->isTranslatable()->shouldBeCalled(); + $entity_type->isRevisionable()->shouldBeCalled(); $entity_type->getProvider()->shouldBeCalled(); $non_content_entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(FALSE); @@ -752,6 +753,7 @@ class EntityFieldManagerTest extends UnitTestCase { $entity_type->getKeys()->willReturn(['default_langcode' => 'default_langcode'])->shouldBeCalled(); $entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(TRUE)->shouldBeCalled(); $entity_type->isTranslatable()->shouldBeCalled(); + $entity_type->isRevisionable()->shouldBeCalled(); $entity_type->getProvider()->shouldBeCalled(); $override_entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(FALSE)->shouldBeCalled();