Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the remaining issues in /tests.

All PHP files in /tests now conform to the PHP coding standards, or have exceptions appropriately marked.

Travis now also runs phpcs on the /tests directory, any future changes to these files must conform entirely to the WordPress PHP coding standards. 🎉

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment.php

    r43467 r45607  
    673673        if ( isset( $GLOBALS['phpmailer']->mock_sent )
    674674            && ! empty( $GLOBALS['phpmailer']->mock_sent )
    675             && WP_TESTS_EMAIL == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]
     675            && WP_TESTS_EMAIL === $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]
    676676        ) {
    677677            $email_sent_when_comment_added = true;
     
    701701        if ( isset( $GLOBALS['phpmailer']->mock_sent )
    702702            && ! empty( $GLOBALS['phpmailer']->mock_sent )
    703             && 'test@test.com' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]
     703            && 'test@test.com' === $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]
    704704        ) {
    705705            $email_sent_when_comment_approved = true;
     
    723723        if ( isset( $GLOBALS['phpmailer']->mock_sent ) &&
    724724            ! empty( $GLOBALS['phpmailer']->mock_sent ) &&
    725             'test@test.com' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] ) {
     725            'test@test.com' === $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] ) {
    726726                $email_sent_when_comment_added = true;
    727727                reset_phpmailer_instance();
Note: See TracChangeset for help on using the changeset viewer.