diff --git a/core/modules/path/tests/src/Unit/PathFieldItemListTest.php b/core/modules/path/tests/src/Unit/PathFieldItemListTest.php deleted file mode 100644 index f1cf0fa522..0000000000 --- a/core/modules/path/tests/src/Unit/PathFieldItemListTest.php +++ /dev/null @@ -1,42 +0,0 @@ -prophesize(DataDefinitionInterface::class); - $definition->isComputed() - ->willReturn(TRUE) - ->shouldBeCalled(); - $parent = $this->prophesize(TypedDataInterface::class); - - $list = new PathFieldItemList($definition->reveal(), $parent->reveal()); - - $field_plugin_manager = $this->prophesize(FieldTypePluginManagerInterface::class); - $field_plugin_manager->createFieldItem($list, 0, NULL) - ->willReturn($this->prophesize(TypedDataInterface::class)->reveal()) - ->shouldBeCalled(); - $container = new ContainerBuilder(); - $container->set('plugin.manager.field.field_type', $field_plugin_manager->reveal()); - \Drupal::setContainer($container); - $this->assertEquals(1, count($list)); - $this->assertEquals(TRUE, $list->isEmpty()); - $this->assertEquals(1, count($list)); - } - -}