Skip to content

Commit

Permalink
Addressed PR Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Jan 29, 2025
1 parent dec0f4b commit 264bd4b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/php/UtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,11 @@ public function test_format_media_no_attachment_meta() {
* @since 1.0
* @group Utils
* @runInSeparateProcess
* @dataProvider data_test_set_media
* @dataProvider data_set_media
*
* @param int $new_image_id ID of the new image.
* @param string $source_url Source URL of the media item.
* @param int $existing_media_id Existing media ID to test for existing media.
*/
public function test_set_media( $new_image_id, $source_url, $existing_media_id ) {
$post_id = 1;
Expand Down Expand Up @@ -939,10 +943,11 @@ public function test_set_media( $new_image_id, $source_url, $existing_media_id )
/**
* Data provider for test_set_media
*
* @since 1.0
* @group Utils
*
* @return array[] Data provider.
*/
public function data_test_set_media() {
public function data_set_media() {
return [
[ 5, 'http://mediaitem.com/mediaitem.jpg', 0 ],
[ 3, 'http://mediaitem.com', 0 ],
Expand Down

0 comments on commit 264bd4b

Please # to comment.