Addshore has uploaded a new change for review.
https://gerrit.wikimedia.org/r/78947
Change subject: Followup to fix error with 'Empty' sitelinks
......................................................................
Followup to fix error with 'Empty' sitelinks
Change-Id: Icdc754f1f08a1898887b1f4dea2d5a23420d836c
---
M repo/tests/phpunit/includes/api/GetEntitiesTest.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/47/78947/1
diff --git a/repo/tests/phpunit/includes/api/GetEntitiesTest.php
b/repo/tests/phpunit/includes/api/GetEntitiesTest.php
index a08ab3c..00372a7 100644
--- a/repo/tests/phpunit/includes/api/GetEntitiesTest.php
+++ b/repo/tests/phpunit/includes/api/GetEntitiesTest.php
@@ -156,7 +156,7 @@
foreach ( self::$usedHandles as $handle ) {
$item = EntityTestHelper::getEntityData( $handle );
- if ( !isset( $item['sitelinks'] ) ) {
+ if ( !array_key_exists( 'sitelinks', $item ) ) {
continue;
}
--
To view, visit https://gerrit.wikimedia.org/r/78947
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icdc754f1f08a1898887b1f4dea2d5a23420d836c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits