Documentation

LotGDTestCase extends TestCase
in package

Table of Contents

assertBuffEventMessageExists()  : mixed
Asserts that a certain BuffMessageEvent with a specific text is contained in the lst of events
assertDataWasKeptIntact()  : void
Asserts if tables from a given PDO connection are equal to the original dataset
assertHasAction()  : void
Asserts that a Viewpoint contains a given action.
assertNotHasAction()  : void
Asserts that a Viewpoint does not contain a given action.
getAction()  : Action|null
takeActions()  : mixed
Helper method to take an action, or a series of actions, on a given viewpoint.

Methods

assertBuffEventMessageExists()

Asserts that a certain BuffMessageEvent with a specific text is contained in the lst of events

public assertBuffEventMessageExists(Collection $events, string $battleEventText[, int $timesAtLeast = 1 ][, int|null $timesAtMax = null ]) : mixed
Parameters
$events : Collection

The list of events

$battleEventText : string

The text to test for

$timesAtLeast : int = 1

Mininum number of times the message is expected to be in the event list

$timesAtMax : int|null = null

Maximum number of times the message is expected to be in the event list, or $timesAtLeast if null.

Return values
mixed

assertDataWasKeptIntact()

Asserts if tables from a given PDO connection are equal to the original dataset

public assertDataWasKeptIntact(array<string|int, mixed> $before, PDO $pdo[, array<string|int, mixed>|null $restrictToTables = null ]) : void
Parameters
$before : array<string|int, mixed>

Previous dataset, in the style of $before[table] => [row1, row2], where each row is an associative array with each column name.

$pdo : PDO
$restrictToTables : array<string|int, mixed>|null = null
Return values
void

assertHasAction()

Asserts that a Viewpoint contains a given action.

public assertHasAction(Viewpoint $viewpoint, array<string|int, mixed> $actionParams[, string|null $groupTitle = null ][, string $message = '' ]) : void
Parameters
$viewpoint : Viewpoint
$actionParams : array<string|int, mixed>
$groupTitle : string|null = null
$message : string = ''
Return values
void

assertNotHasAction()

Asserts that a Viewpoint does not contain a given action.

public assertNotHasAction(Viewpoint $viewpoint, array<string|int, mixed> $actionParams[, string|null $groupTitle = null ][, string $message = '' ]) : void
Parameters
$viewpoint : Viewpoint
$actionParams : array<string|int, mixed>
$groupTitle : string|null = null
$message : string = ''
Return values
void

getAction()

public getAction(Viewpoint $viewpoint, array<string|int, mixed> $actionParams[, string|null $groupTitle = null ]) : Action|null
Parameters
$viewpoint : Viewpoint
$actionParams : array<string|int, mixed>
$groupTitle : string|null = null
Return values
Action|null

Search results