This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
studentersamfundet.no/wp/wp-content/plugins/json-api/tests/query-01.phpt
T
nikolark e903bd6114 Fixes tiled event display and JSON feed of events.
* New version of neuf-events
* New version of WP-JSON-API
* Renames event.event to event.event_type_parents in JSON-feed.
2014-01-11 20:15:56 +01:00

22 lines
513 B
PHP

--TEST--
core.get_author_index with user-friendly URLs
--FILE--
<?php
require_once 'HTTP/Client.php';
$http = new HTTP_Client();
$http->get('http://wordpress.test/api/core/get_author_index?dev=1');
$response = $http->currentResponse();
$response = json_decode($response['body']);
$author = $response->authors[0];
echo "Response status: $response->status\n";
echo "Author count: $response->count\n";
echo "Author name: $author->name\n";
?>
--EXPECT--
Response status: ok
Author count: 1
Author name: themedemos