Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2014 12:05:23 PM (10 years ago)
Author:
djpaul
Message:

Unit Tests: fix test_get_value_byid_multipleusers_cached and test_get_all_for_user_cached which referenced unset variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/xprofile/class-bp-xprofile-profiledata.php

    r7808 r7835  
    226226            'field_group_id' => $g->id,
    227227        ) );
     228
     229        $time = bp_core_current_time();
    228230
    229231        // Fake the cache
     
    365367        $d1->value = 'foo';
    366368        $d1->last_updated = $time;
     369        $d1->id = 1;
    367370
    368371        $d2 = new stdClass;
     
    371374        $d2->value = 'bar';
    372375        $d2->last_updated = $time;
     376        $d2->id = 2;
    373377
    374378        wp_cache_set( $f1->id, $d1, 'bp_xprofile_data_' . $u );
Note: See TracChangeset for help on using the changeset viewer.