PHP Class Flugg\Responder\Tests\MakeSuccessResponseTest

Author: Alexander Tømmerås ([email protected])
Inheritance: extends TestCase
Datei anzeigen Open project: flugger/laravel-responder

Public Methods

Method Description
youCanMakeSuccessResponses ( ) Test that you can generate success responses using the responder service.
youCanOmitData ( ) Test that you can omit the first parameter.
youCanOmitStatusCode ( ) Test that you can omit the second parameter.
youCanPassInMetaData ( ) Test that you can add meta data using a third argument.
youCanPassInStatusCode ( ) Test that you can change the status code using a second argument.
youCanUseABuilderAsData ( ) Test that you may pass in an Eloquent builder as the data.
youCanUseACollectionAsData ( ) Test that you may pass in an Eloquent collection as the data.
youCanUseAPaginatorAsData ( ) Test that you may pass in a Laravel paginator as the data.
youCanUseNullAsData ( ) Test that you may pass in a Laravel paginator as the data.

Method Details

youCanMakeSuccessResponses() public method

Test that you can generate success responses using the responder service.

youCanOmitData() public method

Test that you can omit the first parameter.
public youCanOmitData ( )

youCanOmitStatusCode() public method

Test that you can omit the second parameter.

youCanPassInMetaData() public method

Test that you can add meta data using a third argument.

youCanPassInStatusCode() public method

Test that you can change the status code using a second argument.

youCanUseABuilderAsData() public method

Test that you may pass in an Eloquent builder as the data.

youCanUseACollectionAsData() public method

Test that you may pass in an Eloquent collection as the data.

youCanUseAPaginatorAsData() public method

Test that you may pass in a Laravel paginator as the data.

youCanUseNullAsData() public method

Test that you may pass in a Laravel paginator as the data.
public youCanUseNullAsData ( )