Documentation

MockPublicFormBrowserTest extends MinkBase
in package

Perform some tests against `mockPublicForm.aff.html`.

This test uses Chrome and checks more high-level behaviors. For lower-level checks, see MockPublicFormTest.

Tags
group

e2e

Table of Contents

Properties

$formName  : mixed
$mink  : Mink|null
$screenshotsEnabled  : bool

Methods

setUpBeforeClass()  : void
testUpdateMiddleName()  : void
Create a contact with middle name "Donald". Use the custom form to change the middle name to "Donny".
assertSession()  : WebAssert
createMink()  : Mink
createScreenshot()  : void
Creates a screenshot.
getContact()  : string
initializeTheodoreKerabatsos()  : int
login()  : void
renderToken()  : string
setUp()  : void
tearDown()  : void
visit()  : void
getUserId()  : int

Properties

$screenshotsEnabled

protected bool $screenshotsEnabled = FALSE

Methods

testUpdateMiddleName()

Create a contact with middle name "Donald". Use the custom form to change the middle name to "Donny".

public testUpdateMiddleName() : void
Tags
throws
ElementNotFoundException
throws
CRM_Core_Exception

assertSession()

protected assertSession() : WebAssert
Return values
WebAssert

createMink()

protected createMink() : Mink
Return values
Mink

createScreenshot()

Creates a screenshot.

protected createScreenshot(string $filename[, bool $set_background_color = TRUE ][, bool $force = FALSE ]) : void
Parameters
$filename : string

The file name of the resulting screenshot including a writable path. For example, /tmp/test_screenshot.jpg.

$set_background_color : bool = TRUE

(optional) By default this method will set the background color to white. Set to FALSE to override this behavior.

$force : bool = FALSE

(optional) By default this method will not take screenshots for performance reasons. Set to TRUE to take screenshots.

Tags
throws
UnsupportedDriverActionException

When operation not supported by the driver.

throws
DriverException

When the operation cannot be done.

login()

protected login(string $user) : void
Parameters
$user : string

renderToken()

protected renderToken(string $token, int $cid) : string
Parameters
$token : string
$cid : int
Return values
string

visit()

protected visit(string $url) : void
Parameters
$url : string

getUserId()

private getUserId(string $user) : int
Parameters
$user : string
Return values
int

        
On this page

Search results