Constants

TEMP_FILE_NAME

TEMP_FILE_NAME

Properties

$testsDir

$testsDir : 

Type

$tempFile

$tempFile : 

Type

$tempFileExists

$tempFileExists : 

Type

$hasCookie

$hasCookie : 

Type

$authAs

$authAs : 

Type

Methods

__construct()

__construct(string  $testsDir) 

TestHelper constructor.

Parameters

string $testsDir

getTestsDir()

getTestsDir() : string

Returns

string

isRunner()

isRunner() : boolean

Whether the Laravel instance is run the Codeception test runner itself

Returns

boolean

isSeleniumRequest()

isSeleniumRequest() : boolean

Whether the request is a Selenium request

Returns

boolean

authAs()

authAs() : integer|null

Which user ID to authorize as

Returns

integer|null

enableSeleniumRequests()

enableSeleniumRequests() 

Creates a temporary file that enables isSeleniumRequest to return true.

disableSeleniumRequests()

disableSeleniumRequests() 

Deletes the temporary file that enables isSeleniumRequest to return true.