MinkBase
extends CiviEndToEndTestCase
in package
AbstractYes
Class MinkBase. Helper functions for E2E testing.
Table of Contents
Properties
- $mink : Mink|null
- $screenshotsEnabled : bool
Methods
- setUpBeforeClass() : void
- assertSession() : WebAssert
- createMink() : Mink
- createScreenshot() : void
- Creates a screenshot.
- login() : void
- setUp() : void
- tearDown() : void
- visit() : void
- getUserId() : int
Properties
$mink
protected
Mink|null
$mink
= NULL
$screenshotsEnabled
protected
bool
$screenshotsEnabled
= FALSE
Methods
setUpBeforeClass()
public
static setUpBeforeClass() : void
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
login()
protected
login(string $user) : void
Parameters
- $user : string
setUp()
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