Merge "Refactor ApiTestCase to get token from ApiQueryTokens"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 10 Apr 2018 19:39:45 +0000 (19:39 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 10 Apr 2018 19:39:45 +0000 (19:39 +0000)
1  2 
tests/phpunit/includes/api/ApiTestCase.php

@@@ -67,8 -69,9 +69,10 @@@ abstract class ApiTestCase extends Medi
         * @param array|null $session
         * @param bool $appendModule
         * @param User|null $user
+        * @param string|null $tokenType Set to a string like 'csrf' to send an
+        *   appropriate token
         *
 +       * @throws ApiUsageException
         * @return array
         */
        protected function doApiRequest( array $params, array $session = null,