Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Aug 15, 2024
1 parent 1f82529 commit 2f0c548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/php/UtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ public function test_format_media_not_featured() {
]
);

$formatted_media = Utils\format_media_post( $media_post );
$formatted_media = Utils\format_media_post( $media_post, $media_post->post_parent );

$this->assertFalse( $formatted_media['featured'] );

Expand Down Expand Up @@ -667,7 +667,7 @@ public function test_format_media_featured() {
]
);

$formatted_media = Utils\format_media_post( $media_post );
$formatted_media = Utils\format_media_post( $media_post, $media_post->post_parent );

$this->assertTrue( $formatted_media['featured'] );

Expand Down Expand Up @@ -764,7 +764,7 @@ public function test_format_media_no_attachment_meta() {
]
);

$formatted_media = Utils\format_media_post( $media_post );
$formatted_media = Utils\format_media_post( $media_post, $media_post->post_parent );

$this->assertFalse( array_key_exists( '_wp_attachment_metadata', $formatted_media['meta'] ) );

Expand Down

0 comments on commit 2f0c548

Please sign in to comment.