jenkins-bot has submitted this change and it was merged.
Change subject: Always log in on api test setup
......................................................................
Always log in on api test setup
This avoid failing tests on individual test runs
Change-Id: I1884184a0169be49b243b014d31753bca8a0334e
---
M repo/tests/phpunit/includes/api/ModifyEntityTestBase.php
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Tobias Gritschacher: Looks good to me, approved
jenkins-bot: Verified
diff --git a/repo/tests/phpunit/includes/api/ModifyEntityTestBase.php
b/repo/tests/phpunit/includes/api/ModifyEntityTestBase.php
index b30a85d..ad9ff34 100644
--- a/repo/tests/phpunit/includes/api/ModifyEntityTestBase.php
+++ b/repo/tests/phpunit/includes/api/ModifyEntityTestBase.php
@@ -91,6 +91,8 @@
$wgUser = self::$users['wbeditor']->user;
+ $this->login();
+
//TODO: preserve session and token between calls?!
self::$loginSession = false;
self::$token = false;
--
To view, visit https://gerrit.wikimedia.org/r/77893
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1884184a0169be49b243b014d31753bca8a0334e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits