diff --git a/src/IslandoraUtils.php b/src/IslandoraUtils.php index 06783d4f..5ae0bbb7 100644 --- a/src/IslandoraUtils.php +++ b/src/IslandoraUtils.php @@ -825,8 +825,8 @@ class IslandoraUtils { $file_storage->delete($delete_files); } $results['deleted'] = $this->formatPlural( - count($delete_media), 'the media with the id @media has been deleted.', - 'the medias with the ids @media have been deleted.', + count($delete_media), 'The media with the id @media has been deleted.', + 'The medias with the ids @media have been deleted.', ['@media' => implode(", ", array_keys($delete_media))], ); if ($inaccessible_entities) { diff --git a/tests/src/Functional/DeleteMediaTest.php b/tests/src/Functional/DeleteMediaTest.php index c52eca31..957146fd 100644 --- a/tests/src/Functional/DeleteMediaTest.php +++ b/tests/src/Functional/DeleteMediaTest.php @@ -93,7 +93,7 @@ class DeleteMediaTest extends IslandoraFunctionalTestBase { $this->assertSession()->pageTextContains('Are you sure you want to delete this media and associated files?'); $page->pressButton('Delete'); // Should assert that a media and file were deleted. - $this->assertSession()->pageTextContains('Deleted 2 items.'); + $this->assertSession()->pageTextContains("The media with the id $mid has been deleted"); // Attempt to reload the entities. // Both media and file should be gone.