Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (9 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

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

    r38679 r42343  
    3838     */
    3939    public function test_the_excerpt_password_protected_post() {
    40         $post = self::factory()->post->create_and_get( array( 'post_excerpt' => 'Post excerpt', 'post_password' => '1234' ) );
     40        $post = self::factory()->post->create_and_get(
     41            array(
     42                'post_excerpt'  => 'Post excerpt',
     43                'post_password' => '1234',
     44            )
     45        );
    4146        $this->assertSame( 'There is no excerpt because this is a protected post.', get_the_excerpt( $post ) );
    4247
     
    5055    public function test_the_excerpt_specific_post() {
    5156        $GLOBALS['post'] = self::factory()->post->create_and_get( array( 'post_excerpt' => 'Foo' ) );
    52         $post_id = self::factory()->post->create( array( 'post_excerpt' => 'Bar' ) );
     57        $post_id         = self::factory()->post->create( array( 'post_excerpt' => 'Bar' ) );
    5358        $this->assertSame( 'Bar', get_the_excerpt( $post_id ) );
    5459    }
Note: See TracChangeset for help on using the changeset viewer.