Documentation

ControllerTest extends AbstractHttpControllerTestCase
in package
uses BaseControllerTrait

Table of Contents

Properties

$aclService  : MockObject
$company  : Company
$companyMapper  : MockObject
$companyUser  : CompanyUser
$companyUserAuthService  : MockObject
$companyUserMapper  : MockObject
$member  : Member
$memberMapper  : MockObject
$newCompanyUser  : NewCompanyUser
$serviceManager  : ServiceManager
$user  : User
$userAuthService  : MockObject
$userMapper  : MockObject

Methods

getApplication()  : ApplicationInterface
setUp()  : void
testAdminPhotoActionCanBeAccessedAsAdmin()  : void
testPhotoActionCanBeAccessedAsUser()  : void
testPhotoActionIsForbidden()  : void
testPhotoAlbumActionCanBeAccessedAsUser()  : void
testPhotoMember1ActionCanBeAccessedAsUser()  : void
testPhotoMember8000ActionCanBeAccessedAsUser()  : void
testPhotoWeeklyActionCanBeAccessedAsUser()  : void
testPhotoYearActionCanBeAccessedAsUser()  : void
setUpMockCompany()  : void
setUpMockCompanyUser()  : void
setUpMockedServices()  : void
setUpMockMember()  : void
setUpMockNewCompanyUser()  : void
setUpMockUser()  : void
setUpWithRole()  : void
bootstrapApplication()  : Application
initServiceManager()  : ServiceManager
Variation of {@link Application::init} but without initial bootstrapping.
setUpMockCompanyMapper()  : void
setUpMockCompanyUserAuthService()  : void
setUpMockCompanyUserMapper()  : void
setUpMockIdentity()  : CompanyUser|User|null
setUpMockMemberMapper()  : void
setUpMockUserAuthService()  : void
setUpMockUserMapper()  : void

Properties

Methods

getApplication()

public getApplication() : ApplicationInterface
Return values
ApplicationInterface

testAdminPhotoActionCanBeAccessedAsAdmin()

public testAdminPhotoActionCanBeAccessedAsAdmin() : void

testPhotoActionCanBeAccessedAsUser()

public testPhotoActionCanBeAccessedAsUser() : void

testPhotoActionIsForbidden()

public testPhotoActionIsForbidden() : void

testPhotoAlbumActionCanBeAccessedAsUser()

public testPhotoAlbumActionCanBeAccessedAsUser() : void

testPhotoMember1ActionCanBeAccessedAsUser()

public testPhotoMember1ActionCanBeAccessedAsUser() : void

testPhotoMember8000ActionCanBeAccessedAsUser()

public testPhotoMember8000ActionCanBeAccessedAsUser() : void

testPhotoWeeklyActionCanBeAccessedAsUser()

public testPhotoWeeklyActionCanBeAccessedAsUser() : void

testPhotoYearActionCanBeAccessedAsUser()

public testPhotoYearActionCanBeAccessedAsUser() : void

setUpMockUser()

protected setUpMockUser([ArrayCollection $roles = new ArrayCollection() ]) : void
Parameters
$roles : ArrayCollection = new ArrayCollection()

setUpWithRole()

protected setUpWithRole([string $role = 'user' ]) : void
Parameters
$role : string = 'user'

bootstrapApplication()

private bootstrapApplication(ServiceManager $serviceManager[, array<string|int, mixed> $configuration = [] ]) : Application
Parameters
$serviceManager : ServiceManager
$configuration : array<string|int, mixed> = []
Tags
phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification

Return values
Application

initServiceManager()

Variation of {@link Application::init} but without initial bootstrapping.

private static initServiceManager([array<string|int, mixed> $configuration = [] ]) : ServiceManager
Parameters
$configuration : array<string|int, mixed> = []
Tags
phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification

Return values
ServiceManager

        
On this page

Search results