jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/391832 )

Change subject: Skip provideGetUndoContent when entity does not contain "labels"
......................................................................


Skip provideGetUndoContent when entity does not contain "labels"

Change-Id: I09acd7ecd7e442ccfc3ea14be4265166217552e8
---
M repo/tests/phpunit/includes/Content/EntityHandlerTest.php
1 file changed, 4 insertions(+), 0 deletions(-)

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



diff --git a/repo/tests/phpunit/includes/Content/EntityHandlerTest.php 
b/repo/tests/phpunit/includes/Content/EntityHandlerTest.php
index 95d6751..26d13c4 100644
--- a/repo/tests/phpunit/includes/Content/EntityHandlerTest.php
+++ b/repo/tests/phpunit/includes/Content/EntityHandlerTest.php
@@ -263,6 +263,10 @@
                /** @var LabelsProvider $e5u4 */
                /** @var LabelsProvider $e5u4u3 */
 
+               if ( !$this->newEntity() instanceof LabelsProvider ) {
+                       $this->markTestSkipped( 'provideGetUndoContent only 
works for entities that have labels field' );
+               }
+
                $e1 = $this->newEntity();
                $r1 = $this->fakeRevision( $this->newEntityContent( $e1 ), 1 );
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I09acd7ecd7e442ccfc3ea14be4265166217552e8
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: WMDE-leszek <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to