Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 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/getPostClass.php

    r35299 r42343  
    5151        $this->assertEquals( array(), get_post_class( '', null ) );
    5252        $this->assertEquals( array( 'foo' ), get_post_class( 'foo', null ) );
    53         $this->assertEquals( array( 'foo', 'bar' ),  get_post_class( array( 'foo', 'bar' ), null ) );
     53        $this->assertEquals( array( 'foo', 'bar' ), get_post_class( array( 'foo', 'bar' ), null ) );
    5454    }
    5555
     
    9191    public function test_with_utf8_term_slugs() {
    9292        register_taxonomy( 'wptests_tax', 'post' );
    93         $term_id1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Первая метка' ) );
    94         $term_id2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Вторая метка' ) );
    95         $term_id3 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => '25кадр' ) );
     93        $term_id1 = self::factory()->term->create(
     94            array(
     95                'taxonomy' => 'wptests_tax',
     96                'name'     => 'Первая метка',
     97            )
     98        );
     99        $term_id2 = self::factory()->term->create(
     100            array(
     101                'taxonomy' => 'wptests_tax',
     102                'name'     => 'Вторая метка',
     103            )
     104        );
     105        $term_id3 = self::factory()->term->create(
     106            array(
     107                'taxonomy' => 'wptests_tax',
     108                'name'     => '25кадр',
     109            )
     110        );
    96111        wp_set_post_terms( $this->post_id, array( $term_id1, $term_id2, $term_id3 ), 'wptests_tax' );
    97112
Note: See TracChangeset for help on using the changeset viewer.