Property | Type | Description | |
---|---|---|---|
$cliroot |
Method | Description | |
---|---|---|
__construct ( [array] $parameters ) : [void] | Initializes context | |
aSiteNamed ( string $site ) : boolean | Ensures a site of the given name exists | |
aSiteNamedBelongingTo ( [string] $site, [string] $org ) : [boolean] | Ensures a site of the given name exists and belongs to given org | |
before ( [ScenarioEvent] $event ) : [void] | ||
connectionMode ( [string] $site, [string] $mode = null ) : [void] | Changes or displays mode, given or not, of given site | |
iAddToTheTeamOn ( [string] $email, [string] $site ) : [void] | Adds $email user from $site | |
iAmAuthenticated ( ) : [void] | Logs in user with username and password set in behat.yml And a blank slate cache | |
iAmPrompted ( [string] $prompt, [string] $site, [string] $url = "https://[[dashboard_host]]/" ) : [void] | ||
iCheckTheListOfEnvironmentsOn ( [string] $site ) : [string] | ||
iCheckTheUrlForValidity ( [string] $url ) : [void] | Checks to see if a URL is valid | |
iCheckTheUserAmLoggedInAs ( ) : [void] | Checks which user Terminus is operating as | |
iClearTheCaches ( [string] $env, [string] $site ) : [void] | Clears site caches | |
iCloneTheEnvironment ( [string] $from_env, [string] $to_env, [string] $site ) : [void] | ||
iCommitChanges ( [string] $env, [string] $site, [string] $message ) : [void] | Commits changes to given site's given env with given message | |
iCreateMultidevEnv ( [string] $multidev, [string] $env, [string] $site ) : [void] | Creates a multidev env of given name on given site cloning given env | |
iCreateSiteNamed ( [string] $upstream, [string] $name, [string] $org = false ) : [void] | Creates a site for the given name | |
iDeleteTheSiteNamed ( [string] $site ) : [void] | Deletes a site of the given name | |
iDeployTheEnvironmentOf ( [string] $env, [string] $from, [string] $site, [string] $message ) : [void] | ||
iEnterInput ( ) | ||
iExpireMySession ( ) : [void] | Intentionally expires the user's session | |
iGetInfoForTheEnvironmentOf ( [string] $env, [string] $site ) : [string] | Queries for info for a given site | |
iGetInfoForTheSite ( [string] $site ) : [string] | Queries for info for a given site | |
iHaveAtLeastSite ( [integer] $min ) : [boolean] | Checks which user Terminus is operating as | |
iHaveNoSavedMachineTokens ( ) : boolean | Removes all machine tokens from the running machine | |
iHaveSavedMachineTokens ( integer $num_tokens ) : boolean | Ensures at least X machine tokens exist in the tokens directory | |
iHaveSites ( [integer] $num ) : [boolean] | Checks which user Terminus is operating as | |
iInitializeTheEnvironmentOn ( [string] $env, [string] $site ) : [void] | ||
iInstallTheModuleTo ( [string] $module, [string] $site ) : [void] | Installs given module to given Drupal site | |
iListTheBackupsOf ( [string] $env, [string] $site ) : [string] | List the backups of the given environment of the given site | |
iListTheSites ( ) : [void] | Lists all sites user is on the team of | |
iListTheTeamMembersOn ( [string] $site ) : [void] | Lists team members | |
iLogIn ( [string] $token = '[[machine_token]]' ) : [void] | Logs in user | |
iLogInAs ( [string] $email = '[[username]]' ) : [void] | Logs in a user with a locally saved machine token | |
iLogOut ( ) : [void] | Logs user out | |
iMakeBackupElementsOfTheEnvironment ( [string] $elements, [string] $env, [string] $site ) : [void] | Makes a backup of given elements of given site's given environment | |
iMergeTheEnvironment ( [string] $from_env, [string] $to_env, [string] $site ) : [void] | ||
iRemoveFromTheTeamOn ( [string] $email, [string] $site ) : [void] | Removes $email user from $site | |
iRestoreTheEnvironmentOfFromBackup ( [string] $env, [string] $site ) : [void] | ||
iRun ( [string] $command ) : [string] | ||
iShouldGet ( [string] $string ) : [boolean] | ||
iShouldGetOneOfTheFollowing ( [array] $list_string ) : [boolean] | ||
iShouldGetValidUuid ( ) : boolean | ||
iShouldHaveNewBackup ( ) : [boolean] | Checks for backups made since the test started running | |
iShouldHaveRecords ( [integer] $number ) : [void] | Checks the number of records returned against a given quantity | |
iShouldNotGet ( [string] $string ) : [boolean] | Ensures that you do not recieve param $string as result | |
iShouldNotGetOneOfTheFollowing ( [array] $list_string ) : [boolean] | ||
iShouldSeeAProgressBarWithTheMessage ( $message ) | ||
isMemberOfTheTeamOn ( [string] $member, [string] $site ) : [boolean] | Ensures that a user is not on a site's team | |
isNotMemberOfTheTeamOn ( [string] $member, [string] $site ) : [boolean] | Ensures that a user is not on a site's team | |
noSiteNamed ( [string] $site ) : [boolean] | Ensures there is no site with the given name. Loops until this is so | |
serviceLevel ( [string] $site, [string] $service_level = null ) : [void] | Gets or sets service level | |
setTestStatus ( [string] $status ) : [boolean] | Automatically assigns pass/fail/skip to the test result | |
shouldSeeATableWithHeaders ( string $headers ) : boolean | Checks the output for a table with the given headers | |
shouldSeeATableWithRows ( $rows ) : boolean | Checks the output for a table with the given row values | |
shouldSeeATypeOfMessage ( $type, $message = null ) : boolean | Checks the output for a type of message. Message to match is optional. | |
thisStepIsPending ( string $description ) |
Method | Description | |
---|---|---|
checkResult ( [string] $needle, [string] $haystack ) : [boolean] | Checks the the haystack for the needle | |
getTags ( [ScenarioEvent] $event ) | Returns tags in easy-to-use array format. | |
openInBrowser ( [string] $url ) : [void] | Opens param $url in the default browser | |
read ( ) : [string] | Reads one line from STDIN | |
replacePlaceholders ( [string] $string, [array] $replacements = [] ) : [string] | Exchanges values in given string with square brackets for values in $this->parameters | |
setCassetteName ( [array] $event ) : [string] | Sets $this->cassette_name and returns name of the cassette to be used. |
public __construct ( [array] $parameters ) : [void] | ||
$parameters | [array] | |
return | [void] |
public aSiteNamed ( string $site ) : boolean | ||
$site | string | Name of site to ensure exists |
return | boolean | Always true, else errs |
public aSiteNamedBelongingTo ( [string] $site, [string] $org ) : [boolean] | ||
$site | [string] | |
$org | [string] | |
return | [boolean] |
public before ( [ScenarioEvent] $event ) : [void] | ||
$event | [ScenarioEvent] | |
return | [void] |
public connectionMode ( [string] $site, [string] $mode = null ) : [void] | ||
$site | [string] | |
$mode | [string] | |
return | [void] |
public iAddToTheTeamOn ( [string] $email, [string] $site ) : [void] | ||
[string] | ||
$site | [string] | |
return | [void] |
public iAmAuthenticated ( ) : [void] | ||
return | [void] |
public iAmPrompted ( [string] $prompt, [string] $site, [string] $url = "https://[[dashboard_host]]/" ) : [void] | ||
$prompt | [string] | |
$site | [string] | |
$url | [string] | |
return | [void] |
public iCheckTheListOfEnvironmentsOn ( [string] $site ) : [string] | ||
$site | [string] | |
return | [string] |
public iCheckTheUrlForValidity ( [string] $url ) : [void] | ||
$url | [string] | |
return | [void] |
public iCheckTheUserAmLoggedInAs ( ) : [void] | ||
return | [void] |
public iClearTheCaches ( [string] $env, [string] $site ) : [void] | ||
$env | [string] | |
$site | [string] | |
return | [void] |
public iCloneTheEnvironment ( [string] $from_env, [string] $to_env, [string] $site ) : [void] | ||
$from_env | [string] | |
$to_env | [string] | |
$site | [string] | |
return | [void] |
public iCommitChanges ( [string] $env, [string] $site, [string] $message ) : [void] | ||
$env | [string] | |
$site | [string] | |
$message | [string] | |
return | [void] |
public iCreateMultidevEnv ( [string] $multidev, [string] $env, [string] $site ) : [void] | ||
$multidev | [string] | |
$env | [string] | |
$site | [string] | |
return | [void] |
public iCreateSiteNamed ( [string] $upstream, [string] $name, [string] $org = false ) : [void] | ||
$upstream | [string] | |
$name | [string] | |
$org | [string] | |
return | [void] |
public iDeleteTheSiteNamed ( [string] $site ) : [void] | ||
$site | [string] | |
return | [void] |
public iDeployTheEnvironmentOf ( [string] $env, [string] $from, [string] $site, [string] $message ) : [void] | ||
$env | [string] | |
$from | [string] | |
$site | [string] | |
$message | [string] | |
return | [void] |
public iExpireMySession ( ) : [void] | ||
return | [void] |
public iGetInfoForTheEnvironmentOf ( [string] $env, [string] $site ) : [string] | ||
$env | [string] | |
$site | [string] | |
return | [string] |
public iGetInfoForTheSite ( [string] $site ) : [string] | ||
$site | [string] | |
return | [string] |
public iHaveAtLeastSite ( [integer] $min ) : [boolean] | ||
$min | [integer] | |
return | [boolean] |
public iHaveNoSavedMachineTokens ( ) : boolean | ||
return | boolean |
public iHaveSavedMachineTokens ( integer $num_tokens ) : boolean | ||
$num_tokens | integer | Number of tokens to ensure exist |
return | boolean |
public iHaveSites ( [integer] $num ) : [boolean] | ||
$num | [integer] | |
return | [boolean] |
public iInitializeTheEnvironmentOn ( [string] $env, [string] $site ) : [void] | ||
$env | [string] | |
$site | [string] | |
return | [void] |
public iInstallTheModuleTo ( [string] $module, [string] $site ) : [void] | ||
$module | [string] | |
$site | [string] | |
return | [void] |
public iListTheBackupsOf ( [string] $env, [string] $site ) : [string] | ||
$env | [string] | |
$site | [string] | |
return | [string] |
public iListTheSites ( ) : [void] | ||
return | [void] |
public iListTheTeamMembersOn ( [string] $site ) : [void] | ||
$site | [string] | |
return | [void] |
public iLogIn ( [string] $token = '[[machine_token]]' ) : [void] | ||
$token | [string] | |
return | [void] |
public iLogInAs ( [string] $email = '[[username]]' ) : [void] | ||
[string] | ||
return | [void] |
public iMakeBackupElementsOfTheEnvironment ( [string] $elements, [string] $env, [string] $site ) : [void] | ||
$elements | [string] | |
$env | [string] | |
$site | [string] | |
return | [void] |
public iMergeTheEnvironment ( [string] $from_env, [string] $to_env, [string] $site ) : [void] | ||
$from_env | [string] | |
$to_env | [string] | |
$site | [string] | |
return | [void] |
public iRemoveFromTheTeamOn ( [string] $email, [string] $site ) : [void] | ||
[string] | ||
$site | [string] | |
return | [void] |
public iRestoreTheEnvironmentOfFromBackup ( [string] $env, [string] $site ) : [void] | ||
$env | [string] | |
$site | [string] | |
return | [void] |
public iShouldGet ( [string] $string ) : [boolean] | ||
$string | [string] | |
return | [boolean] |
public iShouldGetOneOfTheFollowing ( [array] $list_string ) : [boolean] | ||
$list_string | [array] | |
return | [boolean] |
public iShouldHaveNewBackup ( ) : [boolean] | ||
return | [boolean] |
public iShouldHaveRecords ( [integer] $number ) : [void] | ||
$number | [integer] | |
return | [void] |
public iShouldNotGet ( [string] $string ) : [boolean] | ||
$string | [string] | |
return | [boolean] |
public iShouldNotGetOneOfTheFollowing ( [array] $list_string ) : [boolean] | ||
$list_string | [array] | |
return | [boolean] |
public iShouldSeeAProgressBarWithTheMessage ( $message ) |
public isMemberOfTheTeamOn ( [string] $member, [string] $site ) : [boolean] | ||
$member | [string] | |
$site | [string] | |
return | [boolean] |
public isNotMemberOfTheTeamOn ( [string] $member, [string] $site ) : [boolean] | ||
$member | [string] | |
$site | [string] | |
return | [boolean] |
public noSiteNamed ( [string] $site ) : [boolean] | ||
$site | [string] | |
return | [boolean] |
public serviceLevel ( [string] $site, [string] $service_level = null ) : [void] | ||
$site | [string] | |
$service_level | [string] | |
return | [void] |
public setTestStatus ( [string] $status ) : [boolean] | ||
$status | [string] | |
return | [boolean] |
public shouldSeeATableWithHeaders ( string $headers ) : boolean | ||
$headers | string | Comma separated row values to match |
return | boolean | true if $headers exists in output |
public shouldSeeATableWithRows ( $rows ) : boolean | ||
$rows | string newline separated row values to match | |
return | boolean | true if all of the rows are present in the output |
public shouldSeeATypeOfMessage ( $type, $message = null ) : boolean | ||
$type | string One of the standard logging levels | |
$message | string Optional message to match in the output | |
return | boolean | True if message is the correct type and exists in output if given |
public thisStepIsPending ( string $description ) | ||
$description | string | feature description of what is still pending |