Menu

## AuthenticationBackendChainTest extends PioniaTestCase
in package

AuthenticationBackendChainTest.php : 11

### Table of Contents

#### Properties

$application : PioniaApplication|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
setUp() : void
tearDown() : void
testAuthenticationChainCreation() : mixed
testAuthenticationRegistration() : mixed
testAuthenticationReturnCorrectly() : mixed
testIsAuthenticationBackend() : mixed
testRequestIsAuthenticated() : mixed

### Properties

#### $application

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

#### $request

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

### Methods

#### applicationMock()

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

##### Tags

throws
  Exception

##### Return values

PioniaApplication

#### 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 : 44

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()

AuthenticationBackendChainTest.php : 13
`public setUp() : void`

#### tearDown()

AuthenticationBackendChainTest.php : 19
`public tearDown() : void`

#### testAuthenticationChainCreation()

AuthenticationBackendChainTest.php : 25
`public testAuthenticationChainCreation() : mixed`

#### testAuthenticationRegistration()

AuthenticationBackendChainTest.php : 35
`public testAuthenticationRegistration() : mixed`

#### testAuthenticationReturnCorrectly()

AuthenticationBackendChainTest.php : 42
`public testAuthenticationReturnCorrectly() : mixed`

#### testIsAuthenticationBackend()

AuthenticationBackendChainTest.php : 30
`public testIsAuthenticationBackend() : mixed`

#### testRequestIsAuthenticated()

AuthenticationBackendChainTest.php : 53
`public testRequestIsAuthenticated() : mixed`

## Search results