@@ -847,11 +847,18 @@ public function testGetActivities()
847847 $ this ->assertCount (2 , $ response ["results " ]);
848848 $ this ->assertCount (0 , $ response ["results " ][0 ]["reaction_counts " ]);
849849
850- $ this ->client ->reactions ()->add ('like ' , $ ids [0 ], "bob " );
851- $ this ->client ->reactions ()->add ('comment ' , $ ids [0 ], "bob " );
850+ $ this ->client ->reactions ()->add ('like ' , $ ids [0 ], "bob1 " );
851+ $ this ->client ->reactions ()->add ('comment ' , $ ids [0 ], "bob2 " );
852852
853853 $ response = $ this ->client ->getActivities ([$ ids [0 ]], null , false , ['counts ' => true , 'kinds ' => ["like " ]]);
854854 $ this ->assertCount (1 , $ response ["results " ]);
855855 $ this ->assertCount (1 , $ response ["results " ][0 ]["reaction_counts " ]);
856+
857+ $ response = $ this ->client ->getActivities ([$ ids [0 ]], null , false , ['counts ' => true , 'own ' => true , "user_id " => 'bob1 ' ]);
858+ $ this ->assertCount (1 , $ response ["results " ]);
859+ $ this ->assertCount (2 , $ response ["results " ][0 ]["reaction_counts " ]);
860+ $ this ->assertCount (1 , $ response ["results " ][0 ]["own_reactions " ]);
861+ $ this ->assertCount (1 , $ response ["results " ][0 ]["own_reactions " ]["like " ]);
862+ $ this ->assertEquals ("bob1 " , $ response ["results " ][0 ]["own_reactions " ]["like " ][0 ]["user_id " ]);
856863 }
857864}
0 commit comments