Add a test for ApiFormatNone
authorKunal Mehta <legoktm@gmail.com>
Sat, 23 Aug 2014 06:27:51 +0000 (23:27 -0700)
committerKunal Mehta <legoktm@gmail.com>
Sat, 23 Aug 2014 06:27:51 +0000 (23:27 -0700)
Because lolz.

Change-Id: I9c472131746a722737300b7d2d2291c70f80bb2e

tests/phpunit/includes/api/format/ApiFormatNoneTest.php [new file with mode: 0644]

diff --git a/tests/phpunit/includes/api/format/ApiFormatNoneTest.php b/tests/phpunit/includes/api/format/ApiFormatNoneTest.php
new file mode 100644 (file)
index 0000000..cabd750
--- /dev/null
@@ -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!
+       }
+}