mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -21,8 +21,9 @@ class Tests_Post_getPages extends WP_UnitTestCase {
|
||||
|
||||
$pages = get_pages();
|
||||
$this->assertEquals( 3, count( $pages ) );
|
||||
$this->assertNotEmpty( $time1 = wp_cache_get( 'last_changed', 'posts' ) );
|
||||
$num_queries = $wpdb->num_queries;
|
||||
$time1 = wp_cache_get( 'last_changed', 'posts' );
|
||||
$this->assertNotEmpty( $time1 );
|
||||
$num_queries = $wpdb->num_queries;
|
||||
foreach ( $pages as $page ) {
|
||||
$this->assertInstanceOf( 'WP_Post', $page );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user