2017 © Pedro Peláez
 

library rest-tester

A base test suite for RESTful APIs written with Laravel.

image

fuzz/rest-tester

A base test suite for RESTful APIs written with Laravel.

  • Friday, December 9, 2016
  • by Fuzzpro
  • Repository
  • 11 Watchers
  • 0 Stars
  • 1,454 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Laravel REST-tester Build Status

A suite of helper methods to test REST APIs., (*1)

Setup

  1. Require-dev the composer package
  2. Extend your base API test case from Fuzz\RestTests\BaseRestTestCase
  3. Adjust setUp and tearDown as needed. The tests for this package are a good example of how to use it.
    1. This package extends orchestra/testbench so all available functionality is present in rest-tester

Helper Traits

Base

  1. Fuzz\RestTests\BaseRestTestCase provides some helper methods to configure tests for a RESTful API

Resources

  1. Fuzz\RestTests\Resources\RestfulResource provides helper methods to test endpoints for restful resources
  2. Add Fuzz\RestTests\Resources\TestResourceX (where X is the resource action) traits depending on which actions need to be tested

OAuth

  1. Fuzz\RestTests\AuthTraits\OAuthTrait provides methods to authenticate, refresh tokens, retrieve tokens from request objects, create users/clients with scopes, etc.

Who tests the testers?

Run phpunit after composer install., (*2)

The Versions

09/12 2016

dev-update-getjson-method

dev-update-getjson-method

A base test suite for RESTful APIs written with Laravel.

  Sources   Download

MIT

The Development Requires

by Fuzz Productions

07/07 2016