Make WordPress Core


Ignore:
Timestamp:
11/15/2013 02:32:16 AM (11 years ago)
Author:
wonderboymusic
Message:

Remove the Featured Content term filters when running Unit Tests. Set the return value of wp_get_object_terms() to a var before passing to array_shift() in test_get_object_terms_types(), which expects a var to be passed by reference.

See #25282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/getTerms.php

    r25933 r26187  
    77    function setUp() {
    88        parent::setUp();
    9 
     9       
     10        _clean_term_filters();
    1011        wp_cache_delete( 'last_changed', 'terms' );
    1112    }
     
    2930        $terms = get_terms( 'post_tag' );
    3031        $this->assertEquals( 15, count( $terms ) );
    31         $this->assertNotEmpty( $time1 = wp_cache_get( 'last_changed', 'terms' ) );
     32        $time1 = wp_cache_get( 'last_changed', 'terms' );
     33        $this->assertNotEmpty( $time1 );
    3234        $this->assertEquals( $num_queries + 1, $wpdb->num_queries );
    3335
Note: See TracChangeset for help on using the changeset viewer.