public function testGetURLReturnsValidJSON() { global $CONFIG; $jsonCache = new JsonCache(); $API_CALL = "/wp-json/posts?filter[orderby]=date&filter[posts_per_page]=3"; $queryURL = $CONFIG['blogURL'] . $API_CALL; $result = json_decode($jsonCache->get_url($queryURL)); $this->assertInternaltype('array', $result); }