Skip to:
Content

BuddyPress.org

Changeset 13403


Ignore:
Timestamp:
01/08/2023 11:25:50 PM (16 months ago)
Author:
espellcaste
Message:

PHPUnit: fixes issue on the test_get_messages_total_count_cached unit test.

See #8697

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/messages/class.bp-messages-thread.php

    r13402 r13403  
    147147        );
    148148
    149         $m2 = self::factory()->message->create(
     149        self::factory()->message->create(
    150150            [
    151151                'thread_id'  => $m1->thread_id,
     
    170170            ]
    171171        );
     172
     173        // Update cache.
     174        BP_Messages_Thread::get_total_thread_message_count( $m1->thread_id );
    172175
    173176        $this->assertSame( 3, wp_cache_get( $cache_key, 'bp_messages_threads' ) );
Note: See TracChangeset for help on using the changeset viewer.