WordPress.org

Make WordPress Core

Changeset 44547


Ignore:
Timestamp:
01/10/2019 09:16:49 PM (2 months ago)
Author:
flixos90
Message:

General: Fix existing coding standard violations in bookmark tests, as outlined in [44546].

See #43977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/bookmark/getBookmarks.php

    r44546 r44547  
    9494            )
    9595        );
     96
    9697        $found_ids = array();
    97         foreach( $found as $bookmark ) {
     98        foreach ( $found as $bookmark ) {
    9899            $found_ids[] = $bookmark->link_id;
    99100        }
     
    111112            )
    112113        );
     114
    113115        $found_ids = array();
    114         foreach( $found as $bookmark ) {
    115             $found_ids[] = $bookmark->link_id;
    116         }
     116        foreach ( $found as $bookmark ) {
     117            $found_ids[] = $bookmark->link_id;
     118        }
    117119
    118120        // equal sets != same order.
     
    121123
    122124    public function test_category_param_propelry_gets_parsed_as_list() {
    123         $bookmarks = self::factory()->bookmark->create_many( 3 );
    124         $categories = self::factory()->term->create_many( 3, array(
    125             'taxonomy' => 'link_category',
    126         ) );
     125        $bookmarks  = self::factory()->bookmark->create_many( 3 );
     126        $categories = self::factory()->term->create_many(
     127            3,
     128            array(
     129                'taxonomy' => 'link_category',
     130            )
     131        );
     132
    127133        $add = wp_add_object_terms( $bookmarks[0], $categories[0], 'link_category' );
    128134        $add = wp_add_object_terms( $bookmarks[1], $categories[1], 'link_category' );
     
    134140            )
    135141        );
     142
    136143        $found_ids = array();
    137         foreach( $found as $bookmark ) {
     144        foreach ( $found as $bookmark ) {
    138145            $found_ids[] = $bookmark->link_id;
    139         }
     146        }
    140147
    141148        // equal sets != same order.
Note: See TracChangeset for help on using the changeset viewer.