Method |
Description |
|
makeMethodShouldReturnCollectionResourceWhenGivenArray ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\Collection] instance
when you pass in an array. |
|
makeMethodShouldReturnCollectionResourceWhenGivenCollection ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\Collection] instance
when you pass in an Illuminate collection. |
|
makeMethodShouldReturnCollectionResourceWhenGivenPaginator ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\Collection] instance
when you pass in an instance of [\Illuminate\Pagination\LengthAwarePaginator]. |
|
makeMethodShouldReturnCollectionResourceWhenGivenPivot ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\Item] instance when
you pass in an instance of [\Illuminate\Database\Eloquent\Relations\Pivot]. |
|
makeMethodShouldReturnCollectionResourceWhenGivenQueryBuilder ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\Collection] instance
when you pass in an Eloquent query builder. |
|
makeMethodShouldReturnCollectionResourceWhenGivenRelation ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\Collection] instance
when you pass in an instance of [\Illuminate\Database\Eloquent\Relations\Relation]. |
|
makeMethodShouldReturnItemResourceWhenGivenModel ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\Item] instance when
you pass in a single model. |
|
makeMethodShouldReturnNullResourceWhenGivenEmptyArray ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\NullResource] instance
when you pass in an empty array. |
|
makeMethodShouldReturnNullResourceWhenGivenEmptyCollection ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\NullResource] instance
when you pass in an empty Illuminate collection. |
|
makeMethodShouldReturnNullResourceWhenGivenEmptyPaginator ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\NullResource] instance
when you pass in an instance of [\Illuminate\Pagination\LengthAwarePaginator] with
no data. |
|
makeMethodShouldReturnNullResourceWhenGivenEmptyQueryBuilder ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\NullResouce] instance
when you pass in an Eloquent query builder which gives no results. |
|
makeMethodShouldReturnNullResourceWhenGivenEmptyRelation ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\NullResource] instance
when you pass in an instance of [\Illuminate\Database\Eloquent\Relations\Relation]
which contains no data. |
|
makeMethodShouldReturnNullResourceWhenGivenNull ( ) |
Test that the [make] method returns a [\League\Fractal\Resource\NullResouce] instance
when no data is given. |
|
makeMethodShouldThrowExceptionWhenGivenInvalidData ( ) |
Test that the [make] method throws an [\InvalidArgumentException] when passing in
data of unsupported data type. |
|