Anomie has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/391907 )

Change subject: Set blocker in unit tests
......................................................................

Set blocker in unit tests

MediaWiki core is going to start rejecting blocks without a valid
blocker, so make sure one is supplied.

Change-Id: I9293fd6e0f958d87e52965de925046f1bb8f8a50
---
M tests/phpunit/Collection/RevisionCollectionPermissionsTest.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/07/391907/1

diff --git a/tests/phpunit/Collection/RevisionCollectionPermissionsTest.php 
b/tests/phpunit/Collection/RevisionCollectionPermissionsTest.php
index 2bfb688..84b12d0 100644
--- a/tests/phpunit/Collection/RevisionCollectionPermissionsTest.php
+++ b/tests/phpunit/Collection/RevisionCollectionPermissionsTest.php
@@ -89,6 +89,7 @@
                $blockedUser = $this->blockedUser();
                $this->block = new Block( [
                        'address' => $blockedUser->getName(),
+                       'by' => $this->getTestSysop()->getUser()->getId(),
                        'user' => $blockedUser->getID()
                ] );
                $this->block->insert();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9293fd6e0f958d87e52965de925046f1bb8f8a50
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>

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

Reply via email to