Skip to content

Commit 7b09603

Browse files
committed
- update MediaItemMutationsTest to account for bugfix on the MediaDetails.file field
1 parent f09a920 commit 7b09603

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/wpunit/MediaItemMutationsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ public function testCreateMediaItemAttachToParentAsAdmin() {
494494
'mediaType' => 'image',
495495
'sourceUrl' => $attachment_url,
496496
'mediaDetails' => [
497-
'file' => $attachment_details['file'],
497+
'file' => basename( $attachment_details['file'] ),
498498
'height' => $attachment_details['height'],
499499
'meta' => [
500500
'aperture' => 0.0,
@@ -682,7 +682,7 @@ public function testCreateMediaItemDefaultValues() {
682682
'parent' => null,
683683
'sourceUrl' => $attachment_url,
684684
'mediaDetails' => [
685-
'file' => $attachment_details['file'],
685+
'file' => basename( $attachment_details['file'] ),
686686
'height' => $attachment_details['height'],
687687
'meta' => [
688688
'aperture' => 0.0,
@@ -761,7 +761,7 @@ public function testCreateMediaItemMutation() {
761761
'mediaType' => 'image',
762762
'sourceUrl' => $attachment_url,
763763
'mediaDetails' => [
764-
'file' => $attachment_details['file'],
764+
'file' => basename( $attachment_details['file'] ),
765765
'height' => $attachment_details['height'],
766766
'meta' => [
767767
'aperture' => 0.0,

0 commit comments

Comments
 (0)