jenkins-bot has submitted this change and it was merged.
Change subject: Add a test for ApiFormatNone
......................................................................
Add a test for ApiFormatNone
Because lolz.
Change-Id: I9c472131746a722737300b7d2d2291c70f80bb2e
---
A tests/phpunit/includes/api/format/ApiFormatNoneTest.php
1 file changed, 16 insertions(+), 0 deletions(-)
Approvals:
Addshore: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/phpunit/includes/api/format/ApiFormatNoneTest.php
b/tests/phpunit/includes/api/format/ApiFormatNoneTest.php
new file mode 100644
index 0000000..cabd750
--- /dev/null
+++ b/tests/phpunit/includes/api/format/ApiFormatNoneTest.php
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * @group API
+ * @group Database
+ * @group medium
+ * @covers ApiFormatNone
+ */
+class ApiFormatNoneTest extends ApiFormatTestBase {
+
+ public function testValidSyntax( ) {
+ $data = $this->apiRequest( 'none', array( 'action' => 'query',
'meta' => 'siteinfo' ) );
+
+ $this->assertEquals( '', $data ); // No output!
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/155870
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9c472131746a722737300b7d2d2291c70f80bb2e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits