WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/26/2017 11:56:25 PM (20 months ago)
Author:
pento
Message:

General: Fix some precision alignment formatting warnings.

The WPCS WordPress.WhiteSpace.PrecisionAlignment rule throws warnings for a bunch of code that will likely cause issues for wpcbf. Fixing these manually beforehand gives us better auto-fixed results later.

See #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/revisions.php

    r38398 r42228  
    166166        $this->assertCount( 1, $revisions );
    167167        foreach ( $revisions as $revision ) {
    168              $this->assertTrue( user_can( self::$editor_user_id, 'edit_post', $revision->post_parent ) );
     168            $this->assertTrue( user_can( self::$editor_user_id, 'edit_post', $revision->post_parent ) );
    169169        }
    170170
    171171        // Author shouldn't be able to restore the revisions
    172172        foreach ( $revisions as $revision ) {
    173              $this->assertFalse( user_can( self::$author_user_id, 'edit_post', $revision->post_parent ) );
     173            $this->assertFalse( user_can( self::$author_user_id, 'edit_post', $revision->post_parent ) );
    174174        }
    175175    }
     
    216216
    217217        foreach ( $revisions as $revision ) {
    218              $this->assertTrue( user_can( self::$editor_user_id, 'read_post', $revision->ID ) );
     218            $this->assertTrue( user_can( self::$editor_user_id, 'read_post', $revision->ID ) );
    219219        }
    220220
    221221        // Author should be able to view the revisions fine
    222222        foreach ( $revisions as $revision ) {
    223              $this->assertTrue( user_can( self::$author_user_id, 'read_post', $revision->ID ) );
     223            $this->assertTrue( user_can( self::$author_user_id, 'read_post', $revision->ID ) );
    224224        }
    225225    }
Note: See TracChangeset for help on using the changeset viewer.