ArrayableTest
extends PioniaTestCase
in package
Table of Contents
Properties
- $application : PioniaApplication|null
- $arrayable : Arrayable|null
- $request : Request|null
Methods
- applicationMock() : PioniaApplication
- createMockContextUser() : ContextUserObject
- This would be mimicking a user we got from our db
- createMockSettings() : EnvResolver
- requestMock() : Request
- mock a post request
- testArrayableChunk() : mixed
- testArrayableCreation() : mixed
- testArrayableFirst() : mixed
- testArrayableFlush() : mixed
- testArrayableGet() : mixed
- testArrayableHas() : mixed
- testArrayableIsArray() : mixed
- testArrayableIsCountable() : mixed
- testArrayableIsEmpty() : mixed
- testArrayableIsFilled() : mixed
- testArrayableIsIterable() : mixed
- testArrayableIsJsonSerializable() : mixed
- testArrayableIsNotEmpty() : mixed
- testArrayableIsStringable() : mixed
- testArrayableKeysToLowerCase() : mixed
- testArrayableKeysToUpperCase() : mixed
- testArrayableLast() : mixed
- testArrayableOnlyByArray() : mixed
- testArrayableOnlyByNullValues() : mixed
- testArrayableOnlyByString() : mixed
- testArrayableRemove() : mixed
- testArrayableReverse() : mixed
- testArrayableSlice() : mixed
- testArrayableToArrayable() : mixed
- testArrayableValuesToLowerCase() : mixed
- testArrayAddAfter() : mixed
- testArrayAddBefore() : mixed
- testArrayPop() : mixed
- testArrayReplace() : mixed
- testArrayShift() : mixed
- testArrayUnshift() : mixed
- testArrMapWithKeys() : mixed
- testArrWhere() : mixed
- testGetJson() : mixed
- testGetOrThrow() : mixed
- testMerging() : mixed
- setUp() : void
- tearDown() : void
Properties
$application
public
PioniaApplication|null
$application
= null
$arrayable
public
Arrayable|null
$arrayable
$request
public
Request|null
$request
Methods
applicationMock()
public
applicationMock() : PioniaApplication
Tags
Return values
PioniaApplicationcreateMockContextUser()
This would be mimicking a user we got from our db
public
createMockContextUser([ContextUserObject|null $customObj = null ]) : ContextUserObject
Parameters
- $customObj : ContextUserObject|null = null
Return values
ContextUserObjectcreateMockSettings()
public
createMockSettings() : EnvResolver
Return values
EnvResolverrequestMock()
mock a post request
public
requestMock([array<string|int, mixed> $data = [] ][, string|null $requestType = 'POST' ][, string|null $url = 'http://localhost:8000/api/v1/' ]) : Request
Parameters
- $data : array<string|int, mixed> = []
- $requestType : string|null = 'POST'
- $url : string|null = 'http://localhost:8000/api/v1/'
Return values
RequesttestArrayableChunk()
public
testArrayableChunk() : mixed
testArrayableCreation()
public
testArrayableCreation() : mixed
testArrayableFirst()
public
testArrayableFirst() : mixed
testArrayableFlush()
public
testArrayableFlush() : mixed
testArrayableGet()
public
testArrayableGet() : mixed
testArrayableHas()
public
testArrayableHas() : mixed
testArrayableIsArray()
public
testArrayableIsArray() : mixed
testArrayableIsCountable()
public
testArrayableIsCountable() : mixed
testArrayableIsEmpty()
public
testArrayableIsEmpty() : mixed
testArrayableIsFilled()
public
testArrayableIsFilled() : mixed
testArrayableIsIterable()
public
testArrayableIsIterable() : mixed
testArrayableIsJsonSerializable()
public
testArrayableIsJsonSerializable() : mixed
testArrayableIsNotEmpty()
public
testArrayableIsNotEmpty() : mixed
testArrayableIsStringable()
public
testArrayableIsStringable() : mixed
testArrayableKeysToLowerCase()
public
testArrayableKeysToLowerCase() : mixed
testArrayableKeysToUpperCase()
public
testArrayableKeysToUpperCase() : mixed
testArrayableLast()
public
testArrayableLast() : mixed
testArrayableOnlyByArray()
public
testArrayableOnlyByArray() : mixed
testArrayableOnlyByNullValues()
public
testArrayableOnlyByNullValues() : mixed
testArrayableOnlyByString()
public
testArrayableOnlyByString() : mixed
testArrayableRemove()
public
testArrayableRemove() : mixed
testArrayableReverse()
public
testArrayableReverse() : mixed
testArrayableSlice()
public
testArrayableSlice() : mixed
testArrayableToArrayable()
public
testArrayableToArrayable() : mixed
testArrayableValuesToLowerCase()
public
testArrayableValuesToLowerCase() : mixed
testArrayAddAfter()
public
testArrayAddAfter() : mixed
testArrayAddBefore()
public
testArrayAddBefore() : mixed
testArrayPop()
public
testArrayPop() : mixed
testArrayReplace()
public
testArrayReplace() : mixed
testArrayShift()
public
testArrayShift() : mixed
testArrayUnshift()
public
testArrayUnshift() : mixed
testArrMapWithKeys()
public
testArrMapWithKeys() : mixed
testArrWhere()
public
testArrWhere() : mixed
testGetJson()
public
testGetJson() : mixed
testGetOrThrow()
public
testGetOrThrow() : mixed
testMerging()
public
testMerging() : mixed
setUp()
protected
setUp() : void
tearDown()
protected
tearDown() : void