PHP 클래스 Flugg\Responder\Tests\MakeSuccessResponseTest

저자: Alexander Tømmerås ([email protected])
상속: extends TestCase
파일 보기 프로젝트 열기: flugger/laravel-responder

공개 메소드들

메소드 설명
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.

메소드 상세

youCanMakeSuccessResponses() 공개 메소드

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

youCanOmitData() 공개 메소드

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

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.
public youCanUseNullAsData ( )