mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-27 17:01:07 +00:00
Replace comment about deprecated Http::post
Bug: T305813 Change-Id: I1975fd473c8d57ab7e43a47ea4da3d4f33fac68c
This commit is contained in:
parent
c3c610fa22
commit
6e424c2e4a
|
@ -137,7 +137,7 @@ class MathRestbaseInterface {
|
|||
/**
|
||||
* Performs a service request
|
||||
* Generates error messages on failure
|
||||
* @see Http::post()
|
||||
* @see MediaWiki\Http\HttpRequestFactory::post()
|
||||
*
|
||||
* @param array $request
|
||||
* @return array
|
||||
|
|
|
@ -65,14 +65,14 @@ class MathMathMLTest extends MediaWikiIntegrationTestCase {
|
|||
$renderer = new MathMathML();
|
||||
$requestReturn = $renderer->makeRequest();
|
||||
$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(),
|
||||
"result value is null if HTTP::post returns false." );
|
||||
"result value is null if MediaWiki\\Http\\HttpRequestFactory::post returns false." );
|
||||
$this->assertTrue(
|
||||
$requestReturn->hasMessage(
|
||||
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"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue