Jeroen De Dauw has uploaded a new change for review.
https://gerrit.wikimedia.org/r/149236
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/36/149236/1
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: newchange
Gerrit-Change-Id: I327969e9f4288e895069d60aa4fea154a60c56c7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits