jenkins-bot has submitted this change and it was merged.
Change subject: Remove use of deprecated TestUser->user
......................................................................
Remove use of deprecated TestUser->user
Change-Id: I10f1809b08a6c39685dc3af8088019483f307e6d
---
M tests/ApiFlowThankIntegrationTest.php
M tests/ApiRevThankIntegrationTest.php
2 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/ApiFlowThankIntegrationTest.php
b/tests/ApiFlowThankIntegrationTest.php
index 59794a5..21012b4 100644
--- a/tests/ApiFlowThankIntegrationTest.php
+++ b/tests/ApiFlowThankIntegrationTest.php
@@ -36,11 +36,11 @@
// mock topic and post
$this->topic = $this->generateObject();
$this->postByOtherUser = $this->generateObject( array(
- 'tree_orig_user_id' => self::$users[ 'uploader'
]->user->getId(),
+ 'tree_orig_user_id' => self::$users[ 'uploader'
]->getUser()->getId(),
'tree_parent_id' =>
$this->topic->getPostId()->getBinary(),
), array(), 1 );
$this->postByMe = $this->generateObject( array(
- 'tree_orig_user_id' => self::$users[ 'sysop'
]->user->getId(),
+ 'tree_orig_user_id' => self::$users[ 'sysop'
]->getUser()->getId(),
'tree_parent_id' =>
$this->topic->getPostId()->getBinary(),
), array(), 1 );
diff --git a/tests/ApiRevThankIntegrationTest.php
b/tests/ApiRevThankIntegrationTest.php
index cd50b9b..222fe65 100644
--- a/tests/ApiRevThankIntegrationTest.php
+++ b/tests/ApiRevThankIntegrationTest.php
@@ -48,7 +48,7 @@
protected function newRevId(){
// You can't thank yourself, kind of hacky
- $this->setMwGlobals( 'wgUser' , self::$users['uploader']->user
);
+ $this->setMwGlobals( 'wgUser',
self::$users['uploader']->getUser() );
/** @var Status $result */
$result = $this->editPage( 'thanks' . rand( 0, 100 ), 'thanks'
. rand( 0, 100 ), 'thanksSummary' );
@@ -56,7 +56,7 @@
/** @var Revision $revision */
$revision = $result['revision'];
- $this->setMwGlobals( 'wgUser' , self::$users['sysop']->user );
+ $this->setMwGlobals( 'wgUser', self::$users['sysop']->getUser()
);
return $revision->getId();
}
--
To view, visit https://gerrit.wikimedia.org/r/230121
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I10f1809b08a6c39685dc3af8088019483f307e6d
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Thanks
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits