You appear to be a bot. Output may be restricted
Description
Usage
Tests_Media::test_attachment_url_to_postid_schemes();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/media.php
Lines:
1 to 19 of 19
function test_attachment_url_to_postid_schemes() { $image_path = '2014/11/' . $this->img_name; $attachment_id = self::factory()->attachment->create_object( $image_path, 0, array( 'post_mime_type' => 'image/jpeg', 'post_type' => 'attachment', ) ); /** * @ticket 33109 Testing protocols not matching */ $image_url = 'https://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image_path; $this->assertEquals( $attachment_id, attachment_url_to_postid( $image_url ) ); }