i have a code like this but the assertion is not working . $user6_notification has user8 and user10 , how can i check the user id is in the user notification? assertContains
foreach ($user6_notification as $notification) {
$this->assertContains($user8["id"],$notification->userId);
}