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
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
$formName
protected
mixed
$formName
= 'mockPublicForm'
$mink
protected
Mink|null
$mink
= NULL
$screenshotsEnabled
protected
bool
$screenshotsEnabled
= FALSE
Methods
setUpBeforeClass()
public
static setUpBeforeClass() : void
testUpdateMiddleName()
Create a contact with middle name "Donald". Use the custom form to change the middle name to "Donny".
public
testUpdateMiddleName() : void
Tags
assertSession()
protected
assertSession() : WebAssert
Return values
WebAssertcreateMink()
protected
createMink() : Mink
Return values
MinkcreateScreenshot()
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
getContact()
protected
getContact(int $contactId) : string
Parameters
- $contactId : int
Tags
Return values
stringinitializeTheodoreKerabatsos()
protected
initializeTheodoreKerabatsos() : int
Return values
intlogin()
protected
login(string $user) : void
Parameters
- $user : string
renderToken()
protected
renderToken(string $token, int $cid) : string
Parameters
- $token : string
- $cid : int
Return values
stringsetUp()
protected
setUp() : void
tearDown()
protected
tearDown() : void
visit()
protected
visit(string $url) : void
Parameters
- $url : string
getUserId()
private
getUserId(string $user) : int
Parameters
- $user : string