- Timestamp:
- 07/13/2021 10:43:42 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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() {
Note: See TracChangeset
for help on using the changeset viewer.