Make WordPress Core


Ignore:
Timestamp:
07/02/2019 04:43:01 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests.

See #47632.

File:
1 edited

Legend:

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

    r44587 r45588  
    2222        $pages = get_pages();
    2323        $this->assertEquals( 3, count( $pages ) );
    24         $this->assertNotEmpty( $time1 = wp_cache_get( 'last_changed', 'posts' ) );
    25         $num_queries                  = $wpdb->num_queries;
     24        $time1 = wp_cache_get( 'last_changed', 'posts' );
     25        $this->assertNotEmpty( $time1 );
     26        $num_queries = $wpdb->num_queries;
    2627        foreach ( $pages as $page ) {
    2728            $this->assertInstanceOf( 'WP_Post', $page );
Note: See TracChangeset for help on using the changeset viewer.