Changeset 51415
- Timestamp:
- 07/13/2021 10:43:42 AM (3 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/MediaEdit.php
r49069 r51415 12 12 * @since 3.5.0 13 13 * @group ajax 14 * 15 * @requires function imagejpeg 14 16 */ 15 17 class Tests_Ajax_MediaEdit extends WP_Ajax_UnitTestCase { … … 26 28 /** 27 29 * @ticket 22985 28 * @requires function imagejpeg29 30 */ 30 31 public function testCropImageThumbnail() { … … 56 57 /** 57 58 * @ticket 32171 58 * @requires function imagejpeg59 59 */ 60 60 public function testImageEditOverwriteConstant() { -
trunk/tests/phpunit/tests/cache.php
r50610 r51415 252 252 function test_switch_to_blog() { 253 253 if ( ! method_exists( $this->cache, 'switch_to_blog' ) ) { 254 return;254 $this->markTestSkipped( 'This test requires a switch_to_blog() method on the cache object.' ); 255 255 } 256 256 -
trunk/tests/phpunit/tests/compat.php
r48996 r51415 243 243 * 244 244 * @ticket 43583 245 * 246 * @requires extension intl 245 247 */ 246 248 function test_is_countable_ResourceBundle() { 247 if ( ! class_exists( 'ResourceBundle' ) ) {248 $this->markTestSkipped( 'The intl extension is not loaded. ResourceBundle not tested for is_countable().' );249 }250 251 249 $this->assertTrue( is_countable( new ResourceBundle( 'en', null ) ) ); 252 250 } … … 256 254 * 257 255 * @ticket 43583 256 * 257 * @requires extension simplexml 258 258 */ 259 259 function test_is_countable_SimpleXMLElement() { 260 if ( ! class_exists( 'SimpleXMLElement' ) ) {261 $this->markTestSkipped( 'The xml extension is not loaded. SimpleXMLElement not tested for is_countable().' );262 }263 264 260 $this->assertTrue( is_countable( new SimpleXMLElement( '<xml><tag>1</tag><tag>2</tag></xml>' ) ) ); 265 261 } -
trunk/tests/phpunit/tests/customize/manager.php
r51331 r51415 542 542 * @covers WP_Customize_Manager::import_theme_starter_content 543 543 * @covers WP_Customize_Manager::_save_starter_content_changeset 544 * @requires function imagejpeg 544 545 */ 545 546 function test_import_theme_starter_content() { -
trunk/tests/phpunit/tests/db/charset.php
r50286 r51415 763 763 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) { 764 764 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." ); 765 return;766 765 } 767 766 … … 805 804 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) { 806 805 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." ); 807 return;808 806 } 809 807 … … 829 827 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) { 830 828 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." ); 831 return;832 829 } 833 830 … … 857 854 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) { 858 855 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." ); 859 return;860 856 } 861 857 … … 918 914 if ( ! self::$_wpdb->has_cap( 'utf8mb4' ) && preg_match( '/utf8mb[34]/i', $create ) ) { 919 915 $this->markTestSkipped( "This version of MySQL doesn't support utf8mb4." ); 920 return;921 916 } 922 917 -
trunk/tests/phpunit/tests/functions/anonymization.php
r49025 r51415 26 26 * @ticket 41083 27 27 * @ticket 43545 28 * @requires function inet_ntop29 * @requires function inet_pton30 28 * 31 29 * @param string $raw_ip Raw IP address. … … 91 89 '::', 92 90 ), 93 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings.94 array(95 'or=\"[1000:0000:0000:0000:0000:0000:0000:0001]:400',96 '1000::',97 ),98 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings.99 array(100 'or=\"[1000:0000:0000:0000:0000:0000:0000:0001]',101 '1000::',102 ),103 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings.104 array(105 'or=\"[1000:0000:0000:0000:0000:0000:0000:0001]400',106 '1000::',107 ),108 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings.109 array(110 '[1000:0000:0000:0000:0000:0000:0000:0001]:235\"or=',111 '1000::',112 ),113 91 // IPv4, no port. 114 92 array( … … 126 104 '10.20.30.0', 127 105 ), 106 // IPv6, no port, reducible representation. 107 array( 108 '0000:0000:0000:0000:0000:0000:0000:0001', 109 '::', 110 ), 111 // IPv6, port, reducible representation. 112 array( 113 '[0000:0000:0000:0000:0000:0000:0000:0001]:1234', 114 '::', 115 ), 116 // IPv6, no port, reduced representation. 117 array( 118 '::', 119 '::', 120 ), 121 // IPv6, no port, reduced representation. 122 array( 123 '::1', 124 '::', 125 ), 126 // IPv6, port, reduced representation. 127 array( 128 '[::]:20000', 129 '::', 130 ), 131 // IPv6, address brackets without port delimiter and number, reduced representation. 132 array( 133 '[::1]', 134 '::', 135 ), 136 // IPv6, no port, compatibility mode. 137 array( 138 '::ffff:10.15.20.25', 139 '::ffff:10.15.20.0', 140 ), 141 // IPv6, port, compatibility mode. 142 array( 143 '[::FFFF:10.15.20.25]:30000', 144 '::ffff:10.15.20.0', 145 ), 146 // IPv6, no port, compatibility mode shorthand. 147 array( 148 '::127.0.0.1', 149 '::ffff:127.0.0.0', 150 ), 151 // IPv6, port, compatibility mode shorthand. 152 array( 153 '[::127.0.0.1]:30000', 154 '::ffff:127.0.0.0', 155 ), 156 ); 157 } 158 159 /** 160 * Test that wp_privacy_anonymize_ip() properly anonymizes all possible IP address formats. 161 * 162 * @dataProvider data_wp_privacy_anonymize_ip_with_inet_dependency 163 * 164 * @ticket 41083 165 * @ticket 43545 166 * @requires function inet_ntop 167 * @requires function inet_pton 168 * 169 * @param string $raw_ip Raw IP address. 170 * @param string $expected_result Expected result. 171 */ 172 public function test_wp_privacy_anonymize_ip_with_inet_dependency( $raw_ip, $expected_result ) { 173 $this->test_wp_privacy_anonymize_ip( $raw_ip, $expected_result ); 174 } 175 176 /** 177 * Provide test cases for `test_wp_privacy_anonymize_ip()`. 178 * 179 * @since 4.9.6 Moved from `Test_WP_Community_Events::data_get_unsafe_client_ip_anonymization()`. 180 * 181 * @return array { 182 * @type array { 183 * @string string $raw_ip Raw IP address. 184 * @string string $expected_result Expected result. 185 * } 186 * } 187 */ 188 public function data_wp_privacy_anonymize_ip_with_inet_dependency() { 189 return array( 190 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings. 191 array( 192 'or=\"[1000:0000:0000:0000:0000:0000:0000:0001]:400', 193 '1000::', 194 ), 195 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings. 196 array( 197 'or=\"[1000:0000:0000:0000:0000:0000:0000:0001]', 198 '1000::', 199 ), 200 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings. 201 array( 202 'or=\"[1000:0000:0000:0000:0000:0000:0000:0001]400', 203 '1000::', 204 ), 205 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings. 206 array( 207 '[1000:0000:0000:0000:0000:0000:0000:0001]:235\"or=', 208 '1000::', 209 ), 128 210 // IPv6, no port. 129 211 array( … … 136 218 '2a03:2880:2110:df07::', 137 219 ), 138 // IPv6, no port, reducible representation.139 array(140 '0000:0000:0000:0000:0000:0000:0000:0001',141 '::',142 ),143 220 // IPv6, no port, partially reducible representation. 144 221 array( … … 146 223 '1000::', 147 224 ), 148 // IPv6, port, reducible representation.149 array(150 '[0000:0000:0000:0000:0000:0000:0000:0001]:1234',151 '::',152 ),153 225 // IPv6, port, partially reducible representation. 154 226 array( 155 227 '[1000:0000:0000:0000:0000:0000:0000:0001]:5678', 156 228 '1000::', 157 ),158 // IPv6, no port, reduced representation.159 array(160 '::',161 '::',162 ),163 // IPv6, no port, reduced representation.164 array(165 '::1',166 '::',167 ),168 // IPv6, port, reduced representation.169 array(170 '[::]:20000',171 '::',172 ),173 // IPv6, address brackets without port delimiter and number, reduced representation.174 array(175 '[::1]',176 '::',177 ),178 // IPv6, no port, compatibility mode.179 array(180 '::ffff:10.15.20.25',181 '::ffff:10.15.20.0',182 ),183 // IPv6, port, compatibility mode.184 array(185 '[::FFFF:10.15.20.25]:30000',186 '::ffff:10.15.20.0',187 ),188 // IPv6, no port, compatibility mode shorthand.189 array(190 '::127.0.0.1',191 '::ffff:127.0.0.0',192 ),193 // IPv6, port, compatibility mode shorthand.194 array(195 '[::127.0.0.1]:30000',196 '::ffff:127.0.0.0',197 229 ), 198 230 // IPv6 with reachability scope. -
trunk/tests/phpunit/tests/general/template.php
r51331 r51415 36 36 * @group site_icon 37 37 * @covers ::get_site_icon_url 38 * @requires function imagejpeg 38 39 */ 39 40 function test_get_site_icon_url() { … … 50 51 * @group site_icon 51 52 * @covers ::site_icon_url 53 * @requires function imagejpeg 52 54 */ 53 55 function test_site_icon_url() { … … 63 65 * @group site_icon 64 66 * @covers ::has_site_icon 67 * @requires function imagejpeg 65 68 */ 66 69 function test_has_site_icon() { … … 104 107 * @group site_icon 105 108 * @covers ::wp_site_icon 109 * @requires function imagejpeg 106 110 */ 107 111 function test_wp_site_icon() { … … 126 130 * @group site_icon 127 131 * @covers ::wp_site_icon 132 * @requires function imagejpeg 128 133 */ 129 134 function test_wp_site_icon_with_filter() { -
trunk/tests/phpunit/tests/http/base.php
r51403 r51415 21 21 parent::setUp(); 22 22 23 if ( is_callable( array( 'WP_Http', '_getTransport' ) ) ) {24 $this->markTestSkipped( 'The WP_Http tests require a class-http.php file of r17550 or later.' );25 return;26 }27 28 23 $class = 'WP_Http_' . ucfirst( $this->transport ); 29 24 if ( ! call_user_func( array( $class, 'test' ) ) ) { -
trunk/tests/phpunit/tests/http/functions.php
r51331 r51415 4 4 * @group http 5 5 * @group external-http 6 * @requires extension openssl7 6 */ 8 7 class Tests_HTTP_Functions extends WP_UnitTestCase { -
trunk/tests/phpunit/tests/image/editorGd.php
r50491 r51415 54 54 /** 55 55 * Test resizing an image, not using crop 56 * 57 * @requires function imagejpeg 56 58 */ 57 59 public function test_resize() { … … 74 76 /** 75 77 * Test multi_resize with single image resize and no crop 78 * 79 * @requires function imagejpeg 76 80 */ 77 81 public function test_single_multi_resize() { … … 184 188 * 185 189 * @ticket 26823 190 * @requires function imagejpeg 186 191 */ 187 192 public function test_multi_resize() { -
trunk/tests/phpunit/tests/image/functions.php
r51397 r51415 173 173 */ 174 174 public function test_wp_save_image_file() { 175 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 176 177 foreach ( $classes as $key => $class ) { 178 if ( ! call_user_func( array( $class, 'test' ) ) ) { 179 // If the image editor isn't available, skip it. 180 unset( $classes[ $key ] ); 181 } 182 } 183 184 if ( ! $classes ) { 185 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 186 } 175 $classes = $this->get_image_editor_engine_classes(); 187 176 188 177 require_once ABSPATH . 'wp-admin/includes/image-edit.php'; … … 234 223 */ 235 224 public function test_mime_overrides_filename() { 236 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 237 238 foreach ( $classes as $key => $class ) { 239 if ( ! call_user_func( array( $class, 'test' ) ) ) { 240 // If the image editor isn't available, skip it. 241 unset( $classes[ $key ] ); 242 } 243 } 244 245 if ( ! $classes ) { 246 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 247 } 225 $classes = $this->get_image_editor_engine_classes(); 248 226 249 227 // Test each image editor engine. … … 276 254 */ 277 255 public function test_inferred_mime_types() { 278 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 279 280 foreach ( $classes as $key => $class ) { 281 if ( ! call_user_func( array( $class, 'test' ) ) ) { 282 // If the image editor isn't available, skip it. 283 unset( $classes[ $key ] ); 284 } 285 } 286 287 if ( ! $classes ) { 288 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 289 } 256 $classes = $this->get_image_editor_engine_classes(); 290 257 291 258 // Mime types. … … 343 310 $this->assertInstanceOf( 'WP_Error', $editor2 ); 344 311 312 $classes = $this->get_image_editor_engine_classes(); 313 314 // Then, test with editors. 315 foreach ( $classes as $class ) { 316 $editor = new $class( DIR_TESTDATA ); 317 $loaded = $editor->load(); 318 319 $this->assertInstanceOf( 'WP_Error', $loaded ); 320 $this->assertSame( 'error_loading_image', $loaded->get_error_code() ); 321 } 322 } 323 324 /** 325 * Get the available image editor engine class(es). 326 * 327 * @return string[] Available image editor classes; empty array when none are avaialble. 328 */ 329 private function get_image_editor_engine_classes() { 345 330 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 346 331 … … 352 337 } 353 338 354 if ( ! $classes ) { 355 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 356 } 357 358 // Then, test with editors. 359 foreach ( $classes as $class ) { 360 $editor = new $class( DIR_TESTDATA ); 361 $loaded = $editor->load(); 362 363 $this->assertInstanceOf( 'WP_Error', $loaded ); 364 $this->assertSame( 'error_loading_image', $loaded->get_error_code() ); 365 } 339 if ( empty( $classes ) ) { 340 $this->markTestSkipped( 'Image editor engines WP_Image_Editor_GD and WP_Image_Editor_Imagick are not supported on this system.' ); 341 } 342 343 return $classes; 366 344 } 367 345 -
trunk/tests/phpunit/tests/image/intermediateSize.php
r51397 r51415 157 157 /** 158 158 * @ticket 17626 159 * @requires function imagejpeg 159 160 */ 160 161 function test_get_intermediate_sizes_by_array_nearest_false() { -
trunk/tests/phpunit/tests/image/resizeGd.php
r50449 r51415 6 6 * @group upload 7 7 * @group resize 8 * 9 * @requires function imagejpeg 8 10 */ 9 11 require_once __DIR__ . '/resize.php'; -
trunk/tests/phpunit/tests/l10n/getLocale.php
r49027 r51415 40 40 public function test_network_option_should_be_fallback_on_multisite() { 41 41 if ( ! is_multisite() ) { 42 $this->markTestSkipped( __METHOD__ . 'requires Multisite.' );42 $this->markTestSkipped( 'This test requires Multisite.' ); 43 43 } 44 44 … … 60 60 public function test_option_should_be_respected_on_nonmultisite() { 61 61 if ( is_multisite() ) { 62 $this->markTestSkipped( __METHOD__ . 'does not apply to Multisite.' );62 $this->markTestSkipped( 'This test does not apply to Multisite.' ); 63 63 } 64 64 -
trunk/tests/phpunit/tests/l10n/getUserLocale.php
r50463 r51415 73 73 public function test_user_locale_is_same_across_network() { 74 74 if ( ! is_multisite() ) { 75 $this->markTestSkipped( __METHOD__ . 'requires Multisite.' );75 $this->markTestSkipped( 'This test requires Multisite.' ); 76 76 } 77 77 -
trunk/tests/phpunit/tests/media.php
r51397 r51415 1723 1723 /** 1724 1724 * @ticket 33641 1725 * @requires function imagejpeg 1725 1726 */ 1726 1727 function test_wp_calculate_image_srcset_no_width() { -
trunk/tests/phpunit/tests/pomo/mo.php
r51367 r51415 180 180 function test_overloaded_mb_functions() { 181 181 if ( ( ini_get( 'mbstring.func_overload' ) & 2 ) === 0 ) { 182 $this->markTestSkipped( __METHOD__ . ' only runs when mbstring.func_overload isenabled.' );182 $this->markTestSkipped( 'This test requires mbstring.func_overload to be enabled.' ); 183 183 } 184 184 -
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r51404 r51415 744 744 } 745 745 746 /** 747 * @requires function imagejpeg 748 */ 746 749 public function test_create_item() { 747 750 wp_set_current_user( self::$author_id ); … … 793 796 } 794 797 798 /** 799 * @requires function imagejpeg 800 */ 795 801 public function test_create_item_with_files() { 796 802 wp_set_current_user( self::$author_id ); … … 811 817 } 812 818 819 /** 820 * @requires function imagejpeg 821 */ 813 822 public function test_create_item_with_upload_files_role() { 814 823 wp_set_current_user( self::$uploader_id ); … … 925 934 } 926 935 936 /** 937 * @requires function imagejpeg 938 */ 927 939 public function test_create_item_alt_text() { 928 940 wp_set_current_user( self::$author_id ); … … 938 950 } 939 951 952 /** 953 * @requires function imagejpeg 954 */ 940 955 public function test_create_item_unsafe_alt_text() { 941 956 wp_set_current_user( self::$author_id ); … … 952 967 /** 953 968 * @ticket 40861 969 * @requires function imagejpeg 954 970 */ 955 971 public function test_create_item_ensure_relative_path() { … … 1275 1291 /** 1276 1292 * @dataProvider attachment_roundtrip_provider 1293 * @requires function imagejpeg 1277 1294 */ 1278 1295 public function test_post_roundtrip_as_author( $raw, $expected ) { … … 1282 1299 } 1283 1300 1301 /** 1302 * @requires function imagejpeg 1303 */ 1284 1304 public function test_attachment_roundtrip_as_editor_unfiltered_html() { 1285 1305 wp_set_current_user( self::$editor_id ); … … 1333 1353 } 1334 1354 1355 /** 1356 * @requires function imagejpeg 1357 */ 1335 1358 public function test_attachment_roundtrip_as_superadmin_unfiltered_html() { 1336 1359 wp_set_current_user( self::$superadmin_id ); … … 1809 1832 * 1810 1833 * @ticket 45269 1834 * @requires function imagejpeg 1811 1835 */ 1812 1836 public function test_rest_insert_attachment_hooks_fire_once_on_create() { … … 1866 1890 /** 1867 1891 * @ticket 44567 1892 * @requires function imagejpeg 1868 1893 */ 1869 1894 public function test_create_item_with_meta_values() { … … 1903 1928 /** 1904 1929 * @ticket 44405 1930 * @requires function imagejpeg 1905 1931 */ 1906 1932 public function test_edit_image_returns_error_if_logged_out() { … … 1915 1941 /** 1916 1942 * @ticket 44405 1943 * @requires function imagejpeg 1917 1944 */ 1918 1945 public function test_edit_image_returns_error_if_cannot_upload() { … … 1931 1958 /** 1932 1959 * @ticket 44405 1960 * @requires function imagejpeg 1933 1961 */ 1934 1962 public function test_edit_image_returns_error_if_cannot_edit() { … … 1957 1985 /** 1958 1986 * @ticket 44405 1987 * @requires function imagejpeg 1959 1988 */ 1960 1989 public function test_edit_image_returns_error_if_unsupported_mime_type() { … … 1976 2005 /** 1977 2006 * @ticket 44405 2007 * @requires function imagejpeg 1978 2008 */ 1979 2009 public function test_edit_image_returns_error_if_no_edits() { … … 1989 2019 /** 1990 2020 * @ticket 44405 2021 * @requires function imagejpeg 1991 2022 */ 1992 2023 public function test_edit_image_rotate() { … … 2013 2044 /** 2014 2045 * @ticket 44405 2046 * @requires function imagejpeg 2015 2047 */ 2016 2048 public function test_edit_image_crop() { … … 2119 2151 /** 2120 2152 * @ticket 50565 2153 * @requires function imagejpeg 2121 2154 */ 2122 2155 public function test_edit_image_returns_error_if_mismatched_src() { -
trunk/tests/phpunit/tests/url.php
r50156 r51415 274 274 275 275 function test_set_url_scheme() { 276 if ( ! function_exists( 'set_url_scheme' ) ) {277 return;278 }279 280 276 $links = array( 281 277 'http://wordpress.org/', -
trunk/tests/phpunit/tests/widgets/media-gallery-widget.php
r49193 r51415 53 53 * 54 54 * @covers WP_Widget_Media_Gallery::render_media 55 * @requires function imagejpeg 55 56 */ 56 57 public function test_render_media() { -
trunk/tests/phpunit/tests/widgets/media-widget.php
r51331 r51415 96 96 $this->assertSame( $name, $widget->name ); 97 97 98 // Method assertArraySubset doesn't exist in phpunit versions compatible with PHP 5.2. 99 if ( method_exists( $this, 'assertArraySubset' ) ) { 100 $this->assertArraySubset( $widget_options, $widget->widget_options ); 101 $this->assertArraySubset( $control_options, $widget->control_options ); 102 } 98 $this->assertArraySubset( $widget_options, $widget->widget_options ); 99 $this->assertArraySubset( $control_options, $widget->control_options ); 103 100 } 104 101 … … 136 133 * 137 134 * @covers WP_Widget_Media::is_attachment_with_mime_type 135 * @requires function imagejpeg 138 136 */ 139 137 function test_is_attachment_with_mime_type() { -
trunk/tests/phpunit/tests/xmlrpc/mw/editPost.php
r48937 r51415 133 133 } 134 134 135 /** 136 * @requires function imagejpeg 137 */ 135 138 function test_post_thumbnail() { 136 139 add_theme_support( 'post-thumbnails' ); -
trunk/tests/phpunit/tests/xmlrpc/mw/getPost.php
r51331 r51415 90 90 } 91 91 92 /** 93 * @requires function imagejpeg 94 */ 92 95 function test_post_thumbnail() { 93 96 add_theme_support( 'post-thumbnails' ); -
trunk/tests/phpunit/tests/xmlrpc/mw/getRecentPosts.php
r51367 r51415 95 95 } 96 96 97 /** 98 * @requires function imagejpeg 99 */ 97 100 function test_post_thumbnail() { 98 101 add_theme_support( 'post-thumbnails' ); -
trunk/tests/phpunit/tests/xmlrpc/mw/newPost.php
r48937 r51415 129 129 } 130 130 131 /** 132 * @requires function imagejpeg 133 */ 131 134 function test_post_thumbnail() { 132 135 add_theme_support( 'post-thumbnails' ); -
trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php
r51404 r51415 133 133 } 134 134 135 /** 136 * @requires function imagejpeg 137 */ 135 138 function test_post_thumbnail() { 136 139 add_theme_support( 'post-thumbnails' ); -
trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.php
r51331 r51415 3 3 /** 4 4 * @group xmlrpc 5 * @requires function imagejpeg 5 6 */ 6 7 class Tests_XMLRPC_wp_getMediaItem extends WP_XMLRPC_UnitTestCase { -
trunk/tests/phpunit/tests/xmlrpc/wp/newPost.php
r51331 r51415 146 146 } 147 147 148 /** 149 * @requires function imagejpeg 150 */ 148 151 function test_post_thumbnail() { 149 152 add_theme_support( 'post-thumbnails' ); -
trunk/tests/phpunit/tests/xmlrpc/wp/uploadFile.php
r51331 r51415 3 3 /** 4 4 * @group xmlrpc 5 * @requires function imagejpeg 5 6 */ 6 7 class Tests_XMLRPC_wp_uploadFile extends WP_XMLRPC_UnitTestCase {
Note: See TracChangeset
for help on using the changeset viewer.