From 108fa6f9a94ffbd77dbc28128d294c75c88391b0 Mon Sep 17 00:00:00 2001 From: ajstanley Date: Sat, 11 May 2024 15:12:30 -0300 Subject: [PATCH] fixed test --- src/IslandoraUtils.php | 4 ++-- tests/src/Functional/DeleteMediaTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.