Documentation

E2E_Shimmy_LifecycleTest extends MixinTestCase
in package

Enable, disable, and uninstall an extension. Ensure that various local example is enabled and disabled appropriately.

The substantive assertions are split across various files in tests/mixins/*.php.

Tags
group

e2e

see
cv

Table of Contents

Properties

$mixinTests  : array<string|int, mixed>

Methods

getTestId()  : array<string|int, mixed>
testLifecycleWithLocalFunctions()  : void
Install and uninstall the extension. Ensure that various mixins+artifacts work correctly.
testLifecycleWithSubprocesses()  : void
Install and uninstall the extension. Ensure that various mixins+artifacts work correctly.
createCvWithLocalFunctions()  : mixed
createCvWithSubprocesses()  : mixed
getMixinTests()  : array<string|int, mixed>
runLifecycle()  : void
runMethods()  : void
setUp()  : void

Properties

Methods

getTestId()

public static getTestId() : array<string|int, mixed>
Return values
array<string|int, mixed>

testLifecycleWithLocalFunctions()

Install and uninstall the extension. Ensure that various mixins+artifacts work correctly.

public testLifecycleWithLocalFunctions(string $id) : void

This interacts with Civi by calling local PHP functions (civicrm_api3( and civicrm_api4()). This style of interaction reveals whether the install/uninstall mechanics have data-leaks that may cause subtle/buggy interactions during the transitions.

Parameters
$id : string
Tags
dataProvider

getTestId

testLifecycleWithSubprocesses()

Install and uninstall the extension. Ensure that various mixins+artifacts work correctly.

public testLifecycleWithSubprocesses(string $id) : void

This interacts with Civi by running many subprocesses (cv api3 and cv api4 commands). This style of interaction is a better representation of how day-to-day sysadmin works.

Parameters
$id : string
Tags
dataProvider

getTestId

createCvWithLocalFunctions()

protected createCvWithLocalFunctions() : mixed

createCvWithSubprocesses()

protected createCvWithSubprocesses() : mixed

getMixinTests()

protected getMixinTests() : array<string|int, mixed>
Return values
array<string|int, mixed>

runLifecycle()

protected runLifecycle(object $cv) : void
Parameters
$cv : object

The $cv object is (roughly speaking) a wrapper for calling cv. It has method bindings for $cv->api3() and $cv->api4(). Different variations of $cv may be supplied - they will execute $cv->api3() and $cv->api4() in slightly different ways.

runMethods()

protected runMethods(string $method, mixed ...$args) : void
Parameters
$method : string
$args : mixed

        
On this page

Search results