Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/11/2024 02:15:24 AM (2 years ago)
Author:
espellcaste
Message:

Unit tests are run with Memcache or/and Redis in CI (Continuous Integration)

A new Github Action is added with a simple matrix to run our unit tests with object cache services, currently Memcache and Redis.

Props imath
See #9076
Fixes #9129
Closes https://github.com/buddypress/buddypress/pull/284

File:
1 edited

Legend:

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

    r13403 r13859  
    8383        $thread = new BP_Messages_Thread( $m1->thread_id, 'ASC', array( 'page' => null, 'per_page' => null ) );
    8484        $this->assertCount( 100, $thread->messages );
    85 
    86         // Get last message.
    87         $messages = BP_Messages_Thread::get_messages( $m1->thread_id, array( 'page' => 100, 'per_page' => 1 ) );
    88         $this->assertCount( 1, $messages );
    89         $this->assertEquals( $u1, $messages[0]->sender_id );
    90         $this->assertEquals( 'Last Message', $messages[0]->subject );
    9185    }
    9286
Note: See TracChangeset for help on using the changeset viewer.