atk_commands.js
Function
Description
createUserWithUserObject(user, roles, args, options)
Create user given user object using Drush. Object is in JSON.
deleteNodeViaUiWithNid(nid)
Delete node via UI given a nid.
deleteUserWithEmail(email, options)
Delete user via Drush given an account email.
deleteUserWithUid(uid, options)
Delete user via Drush given a Drupal UID.
deleteUserWithUserName(userName, args, options)
Delete user via Drush given a Drupal username.
execDrush(cmd,args, options, failOnNonZeroExit)
Run drush command locally or remotely depending on the environment.
execPantheonDrush(cmd)
Run a Pantheon Drush command via Terminus.
getDrushAlias()
Returns Drush alias per environment (in native OS, in native OS+container or in container).
getIframeBody(iframeId)
Return the body of an iframe given an Id.
getUsernameWithEmail(email)
Return the Username of a user given an email.
logInViaForm(account)
Given an account (username, password), log in using the form located at loginUrl.
logInViaUli(uid)
Log in with user:login given a user id.
logOutViaUi()
Log out by visiting the url at logoutUrl.
setDrupalConfiguration(objectName, key, value)
Set Drupal configuration via Drush (cset).
atk_utilities.js
Function
Description
createRandomString(length)
Return string of characters from A-Za-z0-9.