Menu

## PioniaTestCase extends TestCase
in package
Uses HelperMocksTrait

PioniaTestCase.php : 14

### Table of Contents

#### Properties

$application : PioniaApplication|null
$request : Request|null

#### Methods

applicationMock() : PioniaApplication
containerMock() : Container
createMockContextUser() : ContextUserObject
  This would be mimicking a user we got from our db
createMockSettings() : EnvResolver
requestMock() : Request
  mock a post request
setUp() : void
tearDown() : void

### Properties

#### $application

PioniaTestCase.php : 18
`public PioniaApplication|null $application = null`

#### $request

PioniaTestCase.php : 20
`public Request|null $request`

### Methods

#### applicationMock()

PioniaTestCase.php : 63
`public applicationMock() : PioniaApplication`

##### Tags

throws
  Exception

##### Return values

PioniaApplication

#### containerMock()

PioniaTestCase.php : 55
`public containerMock() : Container`

##### Tags

throws
  Exception

##### Return values

Container

#### createMockContextUser()

HelperMocksTrait.php : 15

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

ContextUserObject

#### createMockSettings()

HelperMocksTrait.php : 41
`public createMockSettings() : EnvResolver`

##### Return values

EnvResolver

#### requestMock()

PioniaTestCase.php : 41

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

Request

#### setUp()

PioniaTestCase.php : 25
`protected setUp() : void`

##### Tags

throws
  Exception

#### tearDown()

PioniaTestCase.php : 32
`protected tearDown() : void`

## Search results