Ticket #38489: fix-spelling-phpunit.2.diff
File fix-spelling-phpunit.2.diff, 7.0 KB (added by , 8 years ago) |
---|
-
tests/phpunit/tests/dependencies/styles.php
Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
112 112 } 113 113 114 114 /** 115 * Test if inline styles work with concat ination115 * Test if inline styles work with concatenation 116 116 * @global WP_Styles $wp_styles 117 117 * @ticket 24813 118 118 */ -
tests/phpunit/tests/formatting/Smilies.php
254 254 smilies_init(); 255 255 } 256 256 257 $orig_trans = $wpsmiliestrans; // save original tran lations array257 $orig_trans = $wpsmiliestrans; // save original translations array 258 258 259 259 $wpsmiliestrans = array ( 260 260 ':)' => 'simple-smile.png' -
tests/phpunit/tests/http/base.php
186 186 * @ticket 11888 187 187 */ 188 188 function test_send_headers() { 189 // Test that the headers sent are rec ieved by the server189 // Test that the headers sent are received by the server 190 190 $headers = array('test1' => 'test', 'test2' => 0, 'test3' => ''); 191 191 $res = wp_remote_request( $this->redirection_script . '?header-check', array('headers' => $headers) ); 192 192 -
tests/phpunit/tests/image/meta.php
88 88 function test_exif_error() { 89 89 90 90 // https://core.trac.wordpress.org/ticket/6571 91 // this triggers a warning mes age when reading the exif block91 // this triggers a warning message when reading the exif block 92 92 $out = wp_read_image_metadata(DIR_TESTDATA.'/images/waffles.jpg'); 93 93 94 94 $this->assertEquals(0, $out['aperture']); -
tests/phpunit/tests/mail.php
102 102 103 103 wp_mail( $to, $subject, $message, $headers ); 104 104 105 // WordPress 3.2 and later correctly split the address into the two parts and send them sep erately to PHPMailer105 // WordPress 3.2 and later correctly split the address into the two parts and send them separately to PHPMailer 106 106 // Earlier versions of PHPMailer were not touchy about the formatting of these arguments. 107 107 108 108 //retrieve the mailer instance … … 126 126 127 127 wp_mail( $to, $subject, $message ); 128 128 129 // WordPress 3.2 and later correctly split the address into the two parts and send them sep erately to PHPMailer129 // WordPress 3.2 and later correctly split the address into the two parts and send them separately to PHPMailer 130 130 // Earlier versions of PHPMailer were not touchy about the formatting of these arguments. 131 131 $mailer = tests_retrieve_phpmailer_instance(); 132 132 $this->assertEquals( 'address@tld.com', $mailer->get_recipient( 'to' )->address ); -
tests/phpunit/tests/multisite/site.php
960 960 * @param string $value The sanitized option value. 961 961 * @param string $option The option name. 962 962 * @param string $original_value The original value passed to the function. 963 * @return string The or ginal value.963 * @return string The original value. 964 964 */ 965 965 function filter_allow_unavailable_languages( $value, $option, $original_value ) { 966 966 return $original_value; -
tests/phpunit/tests/post/objects.php
28 28 $this->assertEquals( 'dummy', get_post_meta( $id, 'post_type', true ) ); 29 29 $this->assertEquals( 'post', $post->post_type ); 30 30 31 // Ex cercise the output argument31 // Exercise the output argument 32 32 $post = get_post( $id, ARRAY_A ); 33 33 $this->assertInternalType( 'array', $post ); 34 34 $this->assertEquals( 'post', $post[ 'post_type' ] ); -
tests/phpunit/tests/query/search.php
227 227 'post_status' => 'publish', 228 228 'post_title' => '0', 229 229 'post_content' => 'this post contains zeroes', 230 'post_excerpt' => 'this post contain ts zeroes',230 'post_excerpt' => 'this post contains zeroes', 231 231 ) ); 232 232 233 233 $q = new WP_Query( array( … … 330 330 } 331 331 332 332 /** 333 * Unfiltered search queries for attachment post types should not in lcude333 * Unfiltered search queries for attachment post types should not include 334 334 * filenames to ensure the postmeta JOINs don't happen on the front end. 335 335 * 336 336 * @ticket 22744 -
tests/phpunit/tests/rest-api.php
256 256 } 257 257 258 258 /** 259 * The 'methods' arg should a comma sep erated string.259 * The 'methods' arg should a comma separated string. 260 260 */ 261 public function test_route_method_comma_sep erated() {261 public function test_route_method_comma_separated() { 262 262 register_rest_route( 'test-ns', '/test', array( 263 263 'methods' => 'GET,POST', 264 264 'callback' => '__return_null', -
tests/phpunit/tests/user/capabilities.php
671 671 } 672 672 673 673 function test_role_add_cap() { 674 // change the capabilit es associated with a role and make sure the change is reflected in has_cap()674 // change the capabilities associated with a role and make sure the change is reflected in has_cap() 675 675 676 676 global $wp_roles; 677 677 $role_name = rand_str(); … … 711 711 } 712 712 713 713 function test_role_remove_cap() { 714 // change the capabilit es associated with a role and make sure the change is reflected in has_cap()714 // change the capabilities associated with a role and make sure the change is reflected in has_cap() 715 715 716 716 global $wp_roles; 717 717 $role_name = rand_str();