Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajstanley committed May 11, 2024
1 parent 29c11b6 commit 108fa6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/IslandoraUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,8 @@ public function deleteMediaAndFiles($media) {
$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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Functional/DeleteMediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function testDeleteMediaAndFile() {
$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.
Expand Down

0 comments on commit 108fa6f

Please sign in to comment.