Merge "Make autoblocks update with the parent block"
[lhc/web/wiklou.git] / tests / phpunit / includes / api / format / ApiFormatJsonTest.php
1 <?php
2
3 /**
4 * @group API
5 * @group Database
6 * @group medium
7 * @covers ApiFormatJson
8 */
9 class ApiFormatJsonTest extends ApiFormatTestBase {
10
11 public function testValidSyntax( ) {
12 $data = $this->apiRequest( 'json', array( 'action' => 'query', 'meta' => 'siteinfo' ) );
13
14 $this->assertInternalType( 'array', json_decode( $data, true ) );
15 $this->assertGreaterThan( 0, count( (array)$data ) );
16 }
17 }