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
testAdminCareerActionCanBeAccessedAsAdmin()  : void
testCareerActionCanBeAccessed()  : void
testCareerCompanyActionCanBeAccessed()  : void
testCareerJobActionCanBeAccessed()  : void
testCareerVacanciesActionCanBeAccessed()  : void
testCompanyAccountSelfActionCanBeAccessedAsCompany()  : void
testCompanyAccountSelfActionCannotBeAccessed()  : 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

testAdminCareerActionCanBeAccessedAsAdmin()

public testAdminCareerActionCanBeAccessedAsAdmin() : void

testCareerActionCanBeAccessed()

public testCareerActionCanBeAccessed() : void

testCareerCompanyActionCanBeAccessed()

public testCareerCompanyActionCanBeAccessed() : void

testCareerJobActionCanBeAccessed()

public testCareerJobActionCanBeAccessed() : void

testCareerVacanciesActionCanBeAccessed()

public testCareerVacanciesActionCanBeAccessed() : void

testCompanyAccountSelfActionCanBeAccessedAsCompany()

public testCompanyAccountSelfActionCanBeAccessedAsCompany() : void

testCompanyAccountSelfActionCannotBeAccessed()

public testCompanyAccountSelfActionCannotBeAccessed() : 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