diff --git a/core/modules/field/tests/src/FieldInstanceConfigEntityUnitTest.php b/core/modules/field/tests/src/FieldInstanceConfigEntityUnitTest.php index 8d92db7..1ee5267 100644 --- a/core/modules/field/tests/src/FieldInstanceConfigEntityUnitTest.php +++ b/core/modules/field/tests/src/FieldInstanceConfigEntityUnitTest.php @@ -186,6 +186,8 @@ public function testToArray() { public function testGetType() { // Ensure that FieldInstanceConfig::getType() is not delegated to // FieldStorage. + $this->entityManager->expects($this->never()) + ->method('getFieldStorageDefinitions'); $this->fieldStorage->expects($this->never()) ->method('getType'); @@ -195,6 +197,7 @@ public function testGetType() { 'bundle' => 'test_bundle', 'field_type' => 'test_field', ), $this->entityTypeId); + $this->assertEquals('test_field', $instance->getType()); }