This repository has been archived on 2026-11-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
wp-json-api/tests/core.info-01.phpt
2011-03-25 12:22:44 -04:00

15 lines
316 B
PHP

--TEST--
core.info default
--FILE--
<?php
require_once 'HTTP/Client.php';
$http = new HTTP_Client();
$http->get('http://wordpress.test/?json=core.info');
$response = $http->currentResponse();
echo $response['body'];
?>
--EXPECT--
{"status":"ok","json_api_version":"1.0.7","controllers":["core","posts","respond"]}