WordPress.org

Make WordPress Core

Changeset 28809


Ignore:
Timestamp:
06/23/2014 10:26:12 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Use assertCount() for consistency with other tests.

see #28611.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/results.php

    r28803 r28809  
    649649
    650650        $result = $this->q->query( array( 'handbook' => 'getting-started', 'post_type' => 'handbook' ) );
    651         $this->assertEquals( 1, $this->q->post_count );
     651        $this->assertCount( 1, $result );
    652652    }
    653653
Note: See TracChangeset for help on using the changeset viewer.