Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/22/2021 03:16:06 AM (3 years ago)
Author:
espellcaste
Message:

Marking deprecated query classes, their methods, arguments as deprecated in the BP_Friends_Friendship and BP_Friends_Friendship classes.

Props imath

Fixes #8554 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/friends/class-bp-friends-friendship.php

    r11737 r13086  
    55 */
    66class BP_Tests_BP_Friends_Friendship_TestCases extends BP_UnitTestCase {
     7
     8    /** __construct()  ***************************************************/
     9
     10    /**
     11     * @group __construct
     12     */
     13    public function test_non_existent_friendship() {
     14        $friendship = new BP_Friends_Friendship( 123456789 );
     15        $this->assertSame( 0, $friendship->id );
     16    }
     17
     18    /**
     19     * @group __construct
     20     * @expectedDeprecated BP_Friends_Friendship::__construct
     21     */
     22    public function test_deprecated_arg() {
     23        $friendship = new BP_Friends_Friendship( 123456789, true );
     24        $this->assertSame( 0, $friendship->id );
     25    }
     26
    727    public function test_search_friends() {
    828        $u1 = self::factory()->user->create();
Note: See TracChangeset for help on using the changeset viewer.