Make WordPress Core

Changeset 1283 in tests for trunk/tests/cache.php


Ignore:
Timestamp:
05/16/2013 12:24:56 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Use correct order of arguments. see [1275/tests].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/cache.php

    r1275 r1283  
    282282
    283283        global $wp_object_cache;
    284         $this->assertEquals( $new_blank_cache_object, $wp_object_cache );
     284        $this->assertEquals( $wp_object_cache, $new_blank_cache_object );
    285285    }
    286286
     
    294294        // Save the first value to cache and verify
    295295        wp_cache_set( $key, $val1 );
    296         $this->assertEquals( wp_cache_get( $key ), $val1 );
     296        $this->assertEquals( $val1, wp_cache_get( $key ) );
    297297
    298298        // Replace the value and verify
    299299        wp_cache_replace( $key, $val2 );
    300         $this->assertEquals( wp_cache_get( $key ), $val2 );
     300        $this->assertEquals( $val2, wp_cache_get( $key ) );
    301301
    302302        // Non-existant key should fail
Note: See TracChangeset for help on using the changeset viewer.