From f9c1bfa594a8848ca3d845716929d34fde0a7155 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 20 Apr 2015 14:58:55 -0400 Subject: API: Finish killing "raw mode" It was kept around in the ApiResult rewrite because Wikibase was (mis)using it as an "XML mode" flag. Bug: T96596 Change-Id: Ic8259649c8cb0cce0444c907607c36d96fb2eb7e --- tests/phpunit/includes/api/ApiResultTest.php | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'tests/phpunit/includes/api/ApiResultTest.php') diff --git a/tests/phpunit/includes/api/ApiResultTest.php b/tests/phpunit/includes/api/ApiResultTest.php index cff2328dc8e4..2f31677e700d 100644 --- a/tests/phpunit/includes/api/ApiResultTest.php +++ b/tests/phpunit/includes/api/ApiResultTest.php @@ -1321,17 +1321,6 @@ class ApiResultTest extends MediaWikiTestCase { ), '*' => 'content', ), $result->getData() ); - $result->setRawMode(); - $this->assertSame( array( - 'foo' => array( - 'bar' => array( - '*' => 'content', - ), - ), - '*' => 'content', - '_element' => 'itn', - '_subelements' => array( 'sub' ), - ), $result->getData() ); $arr = array(); ApiResult::setContent( $arr, 'value' ); -- cgit v1.2.3