diff --git a/src/Exporter.php b/src/Exporter.php index 42040d3..2504f98 100644 --- a/src/Exporter.php +++ b/src/Exporter.php @@ -166,7 +166,7 @@ class Exporter implements ExporterInterface { foreach ($uuids as $uuid) { $entity = $this->entityRepository->loadEntityByUuid($entity_type, $uuid); if (!$entity) { - throw new \InvalidArgumentException(sprintf('Entity "%s" with UUID "%s" does not exist', $entity_type, $uuid)); + throw new \InvalidArgumentException(new FormattableMarkup('Entity @type with UUID @uuid does not exist', ['@type' => $entity_type, '@uuid' => $uuid])); } $exported_content[$entity_type][$uuid] = $this->exportContent($entity_type, $entity->id()); } diff --git a/tests/src/Kernel/ExporterIntegrationTest.php b/tests/src/Kernel/DefaultContentManagerIntegrationTest.php similarity index 100% rename from tests/src/Kernel/ExporterIntegrationTest.php rename to tests/src/Kernel/DefaultContentManagerIntegrationTest.php