[buddypress-trac] [BuddyPress Trac] #6978: Friends: Add caching to BP_Friends_Friendship class

buddypress-trac noreply at wordpress.org
Tue Sep 20 21:58:14 UTC 2016

#6978: Friends: Add caching to BP_Friends_Friendship class
 Reporter:  r-a-y        |       Owner:  dcavins
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  2.7
Component:  Friends      |     Version:  1.0
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |

Comment (by dcavins):

 In [changeset:"11125"]:
 #!CommitTicketReference repository="" revision="11125"
 Friends tests: Set date_created to ensure reliable ordering.

 Some of the tests for friendship functionality use `assertEquals()`,
 which requires that the elements of arrays be in the same order and
 each value be equal. In some cases, the order of the elements returned
 by functions like `friends_get_friendship_request_user_ids()` was
 unreliable, probably because phpunit was working quickly enough that
 the `date_created` was indeterminate. This change set manually sets the
 earlier friendship back in time so that the return values can be
 checked reliably.

 See #6978.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6978#comment:17>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list