diff options
author | addshore <addshorewiki@gmail.com> | 2015-08-07 17:10:26 +0100 |
---|---|---|
committer | addshore <addshorewiki@gmail.com> | 2015-08-07 17:10:26 +0100 |
commit | 0273f2d49846ff51e6f38a2669df4583b7935be9 (patch) | |
tree | c236f9bbe26add0a53a702a0f7012cc0848730b9 /tests/phpunit/includes/api/ApiBlockTest.php | |
parent | dc95f0b0c3bc7a45246c4802283096318e527d6e (diff) | |
download | mediawikicore-0273f2d49846ff51e6f38a2669df4583b7935be9.tar.gz mediawikicore-0273f2d49846ff51e6f38a2669df4583b7935be9.zip |
Remove use of deprecated TestUser->user
Change-Id: Iec47ea2609b4d407e827cec5bf2a834b75727005
Diffstat (limited to 'tests/phpunit/includes/api/ApiBlockTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiBlockTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/ApiBlockTest.php b/tests/phpunit/includes/api/ApiBlockTest.php index 880572b4e718..575efd6df1ba 100644 --- a/tests/phpunit/includes/api/ApiBlockTest.php +++ b/tests/phpunit/includes/api/ApiBlockTest.php @@ -53,7 +53,7 @@ class ApiBlockTest extends ApiTestCase { 'action' => 'block', 'user' => 'UTApiBlockee', 'reason' => 'Some reason', - 'token' => $tokens['blocktoken'] ), null, false, self::$users['sysop']->user ); + 'token' => $tokens['blocktoken'] ), null, false, self::$users['sysop']->getUser() ); $block = Block::newFromTarget( 'UTApiBlockee' ); @@ -77,7 +77,7 @@ class ApiBlockTest extends ApiTestCase { ), null, false, - self::$users['sysop']->user + self::$users['sysop']->getUser() ); } } |