Make WordPress Core

Ticket #38489: fix-spelling-phpunit.2.diff

File fix-spelling-phpunit.2.diff, 7.0 KB (added by ottok, 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
     
    112112        }
    113113
    114114        /**
    115          * Test if inline styles work with concatination
     115         * Test if inline styles work with concatenation
    116116         * @global WP_Styles $wp_styles
    117117         * @ticket 24813
    118118         */
  • tests/phpunit/tests/formatting/Smilies.php

     
    254254                        smilies_init();
    255255                }
    256256
    257                 $orig_trans = $wpsmiliestrans; // save original tranlations array
     257                $orig_trans = $wpsmiliestrans; // save original translations array
    258258
    259259                $wpsmiliestrans = array (
    260260                  ':)' => 'simple-smile.png'
  • tests/phpunit/tests/http/base.php

     
    186186         * @ticket 11888
    187187         */
    188188        function test_send_headers() {
    189                 // Test that the headers sent are recieved by the server
     189                // Test that the headers sent are received by the server
    190190                $headers = array('test1' => 'test', 'test2' => 0, 'test3' => '');
    191191                $res = wp_remote_request( $this->redirection_script . '?header-check', array('headers' => $headers) );
    192192
  • tests/phpunit/tests/image/meta.php

     
    8888        function test_exif_error() {
    8989
    9090                // https://core.trac.wordpress.org/ticket/6571
    91                 // this triggers a warning mesage when reading the exif block
     91                // this triggers a warning message when reading the exif block
    9292                $out = wp_read_image_metadata(DIR_TESTDATA.'/images/waffles.jpg');
    9393
    9494                $this->assertEquals(0, $out['aperture']);
  • tests/phpunit/tests/mail.php

     
    102102
    103103                wp_mail( $to, $subject, $message, $headers );
    104104
    105                 // WordPress 3.2 and later correctly split the address into the two parts and send them seperately to PHPMailer
     105                // WordPress 3.2 and later correctly split the address into the two parts and send them separately to PHPMailer
    106106                // Earlier versions of PHPMailer were not touchy about the formatting of these arguments.
    107107
    108108                //retrieve the mailer instance
     
    126126
    127127                wp_mail( $to, $subject, $message );
    128128
    129                 // WordPress 3.2 and later correctly split the address into the two parts and send them seperately to PHPMailer
     129                // WordPress 3.2 and later correctly split the address into the two parts and send them separately to PHPMailer
    130130                // Earlier versions of PHPMailer were not touchy about the formatting of these arguments.
    131131                $mailer = tests_retrieve_phpmailer_instance();
    132132                $this->assertEquals( 'address@tld.com',                   $mailer->get_recipient( 'to' )->address );
  • tests/phpunit/tests/multisite/site.php

     
    960960         * @param string $value          The sanitized option value.
    961961         * @param string $option         The option name.
    962962         * @param string $original_value The original value passed to the function.
    963          * @return string The orginal value.
     963         * @return string The original value.
    964964         */
    965965        function filter_allow_unavailable_languages( $value, $option, $original_value ) {
    966966                return $original_value;
  • tests/phpunit/tests/post/objects.php

     
    2828                $this->assertEquals( 'dummy', get_post_meta( $id, 'post_type', true ) );
    2929                $this->assertEquals( 'post', $post->post_type );
    3030
    31                 // Excercise the output argument
     31                // Exercise the output argument
    3232                $post = get_post( $id, ARRAY_A );
    3333                $this->assertInternalType( 'array', $post );
    3434                $this->assertEquals( 'post', $post[ 'post_type' ] );
  • tests/phpunit/tests/query/search.php

     
    227227                        'post_status' => 'publish',
    228228                        'post_title' => '0',
    229229                        'post_content' => 'this post contains zeroes',
    230                         'post_excerpt' => 'this post containts zeroes',
     230                        'post_excerpt' => 'this post contains zeroes',
    231231                ) );
    232232
    233233                $q = new WP_Query( array(
     
    330330        }
    331331
    332332        /**
    333          * Unfiltered search queries for attachment post types should not inlcude
     333         * Unfiltered search queries for attachment post types should not include
    334334         * filenames to ensure the postmeta JOINs don't happen on the front end.
    335335         *
    336336         * @ticket 22744
  • tests/phpunit/tests/rest-api.php

     
    256256        }
    257257
    258258        /**
    259          * The 'methods' arg should a comma seperated string.
     259         * The 'methods' arg should a comma separated string.
    260260         */
    261         public function test_route_method_comma_seperated() {
     261        public function test_route_method_comma_separated() {
    262262                register_rest_route( 'test-ns', '/test', array(
    263263                        'methods'  => 'GET,POST',
    264264                        'callback' => '__return_null',
  • tests/phpunit/tests/user/capabilities.php

     
    671671        }
    672672
    673673        function test_role_add_cap() {
    674                 // change the capabilites 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()
    675675
    676676                global $wp_roles;
    677677                $role_name = rand_str();
     
    711711        }
    712712
    713713        function test_role_remove_cap() {
    714                 // change the capabilites 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()
    715715
    716716                global $wp_roles;
    717717                $role_name = rand_str();