aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiWatchTest.php
diff options
context:
space:
mode:
authorKunal Mehta <legoktm@debian.org>2021-08-04 23:54:11 -0700
committerKunal Mehta <legoktm@debian.org>2021-08-05 15:48:26 -0700
commita85f569dd1c5efca1d0c64f824b27f9071aa93c6 (patch)
tree1894dab29db0518fd4c7ea9404dc2bbab9154f99 /tests/phpunit/includes/api/ApiWatchTest.php
parentb01945fb4e6fb9a1730982660b37e45b520edaf7 (diff)
downloadmediawikicore-a85f569dd1c5efca1d0c64f824b27f9071aa93c6.tar.gz
mediawikicore-a85f569dd1c5efca1d0c64f824b27f9071aa93c6.zip
Revert "Use CsrfTokenSet as CSRF token source"
This reverts commit 0d75fdb4f73ddbf4ad5f29e14258d58e507d55b4. Bug: T287542 Change-Id: Iedd3461869f973f8d621a39e6ad4674cbb577551
Diffstat (limited to 'tests/phpunit/includes/api/ApiWatchTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiWatchTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/ApiWatchTest.php b/tests/phpunit/includes/api/ApiWatchTest.php
index 381b130a2a3d..7f31b61e10e7 100644
--- a/tests/phpunit/includes/api/ApiWatchTest.php
+++ b/tests/phpunit/includes/api/ApiWatchTest.php
@@ -235,12 +235,13 @@ class ApiWatchTest extends ApiTestCase {
// This (and assertTrue below) are mostly for completeness.
$this->assertFalse( $watchlistManager->isWatched( $contextUser, $title ) );
- $data = $this->doApiRequestWithToken( [
+ $data = $this->doApiRequest( [
'action' => 'rollback',
'title' => 'Help:UTPage',
'user' => $revUser,
+ 'token' => $contextUser->getEditToken( 'rollback' ),
'watchlist' => 'watch'
- ], null, $contextUser );
+ ] );
$this->assertArrayHasKey( 'rollback', $data[0] );
$this->assertArrayHasKey( 'title', $data[0]['rollback'] );