diff --git a/tests/phpunit/tests/image/header.php b/tests/phpunit/tests/image/header.php
index cfa21fcb6e..07cc4edae9 100644
a
|
b
|
class Tests_Image_Header extends WP_UnitTestCase { |
108 | 108 | 'post_status' => 'publish', |
109 | 109 | 'post_title' => 'foo.png', |
110 | 110 | 'post_type' => 'post', |
111 | | 'guid' => 'http://localhost/foo.png' |
| 111 | 'guid' => 'foo.png' |
112 | 112 | ) ); |
113 | 113 | |
114 | | $cropped = 'http://localhost/foo-cropped.png'; |
| 114 | $cropped = 'foo-cropped.png'; |
115 | 115 | |
116 | 116 | $object = $this->custom_image_header->create_attachment_object( $cropped, $id ); |
117 | | $this->assertEquals( $object['post_title'], 'foo-cropped.png' ); |
118 | | $this->assertEquals( $object['guid'], $cropped ); |
119 | | $this->assertEquals( $object['context'], 'custom-header' ); |
120 | | $this->assertEquals( $object['post_mime_type'], 'image/jpeg' ); |
| 117 | $this->assertEquals( 'foo-cropped.png', $object['post_title'] ); |
| 118 | $this->assertEquals( 'http://' . $cropped, $object['guid'] ); |
| 119 | $this->assertEquals( 'custom-header', $object['context'] ); |
| 120 | $this->assertEquals( 'image/jpeg', $object['post_mime_type'] ); |
121 | 121 | } |
122 | 122 | |
123 | 123 | function test_insert_cropped_attachment() { |
… |
… |
class Tests_Image_Header extends WP_UnitTestCase { |
125 | 125 | 'post_status' => 'publish', |
126 | 126 | 'post_title' => 'foo.png', |
127 | 127 | 'post_type' => 'post', |
128 | | 'guid' => 'http://localhost/foo.png' |
| 128 | 'guid' => 'foo.png' |
129 | 129 | ) ); |
130 | 130 | |
131 | | $cropped = 'http://localhost/foo-cropped.png'; |
| 131 | $cropped = 'foo-cropped.png'; |
132 | 132 | $object = $this->custom_image_header->create_attachment_object( $cropped, $id ); |
133 | 133 | |
134 | 134 | $cropped_id = $this->custom_image_header->insert_attachment( $object, $cropped ); |