diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2020-12-09 22:04:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2020-12-09 22:04:21 +0000 |
commit | 2b7dac53f3ac38e36a69854160ea981e43bdb7f2 (patch) | |
tree | 27c7f5747b3a0882c2edc557bc04c0784fda6039 /tests/phpunit/integration/includes/Rest/Handler/PageHTMLHandlerTest.php | |
parent | 3b0fb6559d18d23a0716047019cec56a0a44627e (diff) | |
parent | 808d841447599948ce3e004e66776e6554918dcc (diff) | |
download | mediawikicore-2b7dac53f3ac38e36a69854160ea981e43bdb7f2.tar.gz mediawikicore-2b7dac53f3ac38e36a69854160ea981e43bdb7f2.zip |
Merge "Moved page/{title}/bare to PageSourceHandler"
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' ); |