WordPress.org

Make WordPress Core

Changeset 511 in tests


Ignore:
Timestamp:
02/01/2012 11:10:15 PM (6 years ago)
Author:
convissor
Message:

Fix cat query test even better, per duck_.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_query_results.php

    r509 r511  
    153153    function test_query_cat() {
    154154        $cat = category_exists('cat-b');
    155         // Break up string so PHP does not think $cat[termid] is an array here.
    156         $posts = $this->q->query("cat={".$cat."[term_id]}");
     155        $posts = $this->q->query("cat=$cat");
    157156
    158157        // there are 4 posts with Cat B
Note: See TracChangeset for help on using the changeset viewer.