diff options
author | Cindy Cicalese <cindom@gmail.com> | 2020-12-09 14:30:06 -0500 |
---|---|---|
committer | daniel <dkinzler@wikimedia.org> | 2020-12-09 22:02:11 +0100 |
commit | 808d841447599948ce3e004e66776e6554918dcc (patch) | |
tree | c68806be8c715ccae38f741eb4f3689d6137f9c7 /tests/phpunit/integration/includes/Rest/Handler/PageHTMLHandlerTest.php | |
parent | 02c2cd597b4ea17fd5ead46e71007b75977c51f0 (diff) | |
download | mediawikicore-808d841447599948ce3e004e66776e6554918dcc.tar.gz mediawikicore-808d841447599948ce3e004e66776e6554918dcc.zip |
Moved page/{title}/bare to PageSourceHandler
Bug: T267981
Change-Id: Ie1a5ee9da5d8231bbf7ea2cbb419ab4bcec33c43
Diffstat (limited to 'tests/phpunit/integration/includes/Rest/Handler/PageHTMLHandlerTest.php')
-rw-r--r-- | tests/phpunit/integration/includes/Rest/Handler/PageHTMLHandlerTest.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/phpunit/integration/includes/Rest/Handler/PageHTMLHandlerTest.php b/tests/phpunit/integration/includes/Rest/Handler/PageHTMLHandlerTest.php index d66221ac4b13..f06d6b1c2f58 100644 --- a/tests/phpunit/integration/includes/Rest/Handler/PageHTMLHandlerTest.php +++ b/tests/phpunit/integration/includes/Rest/Handler/PageHTMLHandlerTest.php @@ -96,22 +96,6 @@ class PageHTMLHandlerTest extends MediaWikiIntegrationTestCase { return $handler; } - public function testExecuteBare() { - $page = $this->getExistingTestPage( 'Talk:HtmlEndpointTestPage/with/slashes' ); - $request = new RequestData( - [ 'pathParams' => [ 'title' => $page->getTitle()->getPrefixedText() ] ] - ); - - $htmlUrl = 'https://wiki.example.com/rest/v1/page/Talk%3AHtmlEndpointTestPage%2Fwith%2Fslashes/html'; - - $handler = $this->newHandler(); - $config = [ 'format' => 'bare' ]; - $data = $this->executeHandlerAndGetBodyData( $handler, $request, $config ); - - $this->assertResponseData( $page, $data ); - $this->assertSame( $htmlUrl, $data['html_url'] ); - } - public function testExecuteWithHtml() { $this->checkParsoidInstalled(); $page = $this->getExistingTestPage( 'HtmlEndpointTestPage/with/slashes' ); |