jenkins-bot has submitted this change and it was merged.

Change subject: DM 1.0 compat: do not use Snaks::toArray
......................................................................


DM 1.0 compat: do not use Snaks::toArray

Change-Id: I327969e9f4288e895069d60aa4fea154a60c56c7
---
M repo/tests/phpunit/includes/api/SetClaimTest.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  WikidataJenkins: Verified
  Thiemo Mättig (WMDE): Looks good to me, approved
  jenkins-bot: Verified



diff --git a/repo/tests/phpunit/includes/api/SetClaimTest.php 
b/repo/tests/phpunit/includes/api/SetClaimTest.php
index d9af675..2f13c50 100644
--- a/repo/tests/phpunit/includes/api/SetClaimTest.php
+++ b/repo/tests/phpunit/includes/api/SetClaimTest.php
@@ -388,7 +388,7 @@
 
                $savedClaim = $claims->getClaimWithGuid( $claim->getGuid() );
                if( count( $claim->getQualifiers() ) ) {
-                       $this->assertArrayEquals( 
$claim->getQualifiers()->toArray(), $savedClaim->getQualifiers()->toArray(), 
true );
+                       $this->assertTrue( $claim->getQualifiers()->equals( 
$savedClaim->getQualifiers() ) );
                }
 
                $this->assertEquals( $claimCount, $claims->count(), "Claims 
count is wrong after {$requestLabel}" );

-- 
To view, visit https://gerrit.wikimedia.org/r/149236
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I327969e9f4288e895069d60aa4fea154a60c56c7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: WikidataJenkins <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to