Replace comment about deprecated Http::post

Bug: T305813
Change-Id: I1975fd473c8d57ab7e43a47ea4da3d4f33fac68c
This commit is contained in:
Umherirrender 2022-12-11 15:04:59 +01:00
parent c3c610fa22
commit 6e424c2e4a
2 changed files with 4 additions and 4 deletions

View file

@ -137,7 +137,7 @@ class MathRestbaseInterface {
/** /**
* Performs a service request * Performs a service request
* Generates error messages on failure * Generates error messages on failure
* @see Http::post() * @see MediaWiki\Http\HttpRequestFactory::post()
* *
* @param array $request * @param array $request
* @return array * @return array

View file

@ -65,14 +65,14 @@ class MathMathMLTest extends MediaWikiIntegrationTestCase {
$renderer = new MathMathML(); $renderer = new MathMathML();
$requestReturn = $renderer->makeRequest(); $requestReturn = $renderer->makeRequest();
$this->assertFalse( $requestReturn->isGood(), $this->assertFalse( $requestReturn->isGood(),
"requestReturn is false if HTTP::post returns false." ); "requestReturn is false if MediaWiki\\Http\\HttpRequestFactory::post returns false." );
$this->assertNull( $requestReturn->getValue(), $this->assertNull( $requestReturn->getValue(),
"result value is null if HTTP::post returns false." ); "result value is null if MediaWiki\\Http\\HttpRequestFactory::post returns false." );
$this->assertTrue( $this->assertTrue(
$requestReturn->hasMessage( $requestReturn->hasMessage(
wfMessage( 'math_invalidresponse', '', $url, 'Method Not Allowed' ) wfMessage( 'math_invalidresponse', '', $url, 'Method Not Allowed' )
), ),
"return an error if HTTP::post returns false" "return an error if MediaWiki\\Http\\HttpRequestFactory::post returns false"
); );
} }