File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments