You are here

public function TestSubContext::getUids in Panopoly 8.2

Same name and namespace in other branches
  1. 7 modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc \TestSubContext::getUIDs()

Get a list of UIDs.

Return value

array An array of numeric UIDs of users created by Given steps during this scenario.

1 call to TestSubContext::getUids()
TestSubContext::cleanFiles in modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc
Cleans up files after every scenario.

File

modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc, line 525
Provide Behat step-definitions for generic Panopoly tests.

Class

TestSubContext
Behat sub-context for Panopoly.

Code

public function getUids() {
  $uids = [];
  foreach ($this->externalUsers as $user) {
    $uids[] = $user->uid;
  }
  return $uids;
}