Changeset 52010 for trunk/tests/phpunit/tests/oembed/getResponseData.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/getResponseData.php
r51587 r52010 13 13 } 14 14 15 function test_get_oembed_response_data_non_existent_post() {15 public function test_get_oembed_response_data_non_existent_post() { 16 16 $this->assertFalse( get_oembed_response_data( 0, 100 ) ); 17 17 } 18 18 19 function test_get_oembed_response_data() {19 public function test_get_oembed_response_data() { 20 20 $post = self::factory()->post->create_and_get( 21 21 array( … … 46 46 * Test get_oembed_response_data with an author. 47 47 */ 48 function test_get_oembed_response_data_author() {48 public function test_get_oembed_response_data_author() { 49 49 $user_id = self::factory()->user->create( 50 50 array( … … 79 79 } 80 80 81 function test_get_oembed_response_link() {81 public function test_get_oembed_response_link() { 82 82 remove_filter( 'oembed_response_data', 'get_oembed_response_data_rich' ); 83 83 … … 106 106 } 107 107 108 function test_get_oembed_response_data_with_draft_post() {108 public function test_get_oembed_response_data_with_draft_post() { 109 109 $post = self::factory()->post->create_and_get( 110 110 array( … … 116 116 } 117 117 118 function test_get_oembed_response_data_with_scheduled_post() {118 public function test_get_oembed_response_data_with_scheduled_post() { 119 119 $post = self::factory()->post->create_and_get( 120 120 array( … … 127 127 } 128 128 129 function test_get_oembed_response_data_with_private_post() {129 public function test_get_oembed_response_data_with_private_post() { 130 130 $post = self::factory()->post->create_and_get( 131 131 array( … … 140 140 * @ticket 47574 141 141 */ 142 function test_get_oembed_response_data_with_public_true_custom_post_status() {142 public function test_get_oembed_response_data_with_public_true_custom_post_status() { 143 143 // Custom status with 'public' => true. 144 144 register_post_status( 'public', array( 'public' => true ) ); … … 156 156 * @ticket 47574 157 157 */ 158 function test_get_oembed_response_data_with_public_false_custom_post_status() {158 public function test_get_oembed_response_data_with_public_false_custom_post_status() { 159 159 // Custom status with 'public' => false. 160 160 register_post_status( 'private_foo', array( 'public' => false ) ); … … 172 172 * @ticket 47574 173 173 */ 174 function test_get_oembed_response_data_with_unregistered_custom_post_status() {174 public function test_get_oembed_response_data_with_unregistered_custom_post_status() { 175 175 $post = self::factory()->post->create_and_get( 176 176 array( … … 182 182 } 183 183 184 function test_get_oembed_response_data_maxwidth_too_high() {184 public function test_get_oembed_response_data_maxwidth_too_high() { 185 185 $post = self::factory()->post->create_and_get(); 186 186 … … 191 191 } 192 192 193 function test_get_oembed_response_data_maxwidth_too_low() {193 public function test_get_oembed_response_data_maxwidth_too_low() { 194 194 $post = self::factory()->post->create_and_get(); 195 195 … … 200 200 } 201 201 202 function test_get_oembed_response_data_maxwidth_invalid() {202 public function test_get_oembed_response_data_maxwidth_invalid() { 203 203 $post = self::factory()->post->create_and_get(); 204 204 … … 214 214 } 215 215 216 function test_get_oembed_response_data_with_thumbnail() {216 public function test_get_oembed_response_data_with_thumbnail() { 217 217 $post = self::factory()->post->create_and_get(); 218 218 $file = DIR_TESTDATA . '/images/canola.jpg'; … … 234 234 } 235 235 236 function test_get_oembed_response_data_for_attachment() {236 public function test_get_oembed_response_data_for_attachment() { 237 237 $parent = self::factory()->post->create(); 238 238 $file = DIR_TESTDATA . '/images/canola.jpg';
Note: See TracChangeset
for help on using the changeset viewer.