From 3c7dcefd9f4d7379ccaf69810763d6aae786b6a2 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Mon, 6 May 2019 21:55:20 +0200 Subject: [PATCH] MDL-64993 core_message: fix behat test failing with Oracle --- message/tests/privacy_provider_test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/message/tests/privacy_provider_test.php b/message/tests/privacy_provider_test.php index d43050bbdb0..24db3c0ebfd 100644 --- a/message/tests/privacy_provider_test.php +++ b/message/tests/privacy_provider_test.php @@ -1467,8 +1467,10 @@ class core_message_privacy_provider_testcase extends \core_privacy\tests\provide $this->assertCount(0, $muas); $this->assertCount(6, $mcms); - $mcm = reset($mcms); - $this->assertEquals($user2->id, $mcm->userid); + $memberids = array_map(function($convmember) { + return $convmember->userid; + }, $mcms); + $this->assertContains($user2->id, $memberids); $this->assertCount(2, $notifications); ksort($notifications); -- 2.43.0