public function TestSubContext::afterUserCreate in Drupal Commons 7.3
Record all the users created during this scenario.
We need to use this hook so we can get users created in steps on other contexts (most probably the DrupalContext).
@AfterUserCreate
File
- tests/
steps/ commons_test.behat.inc, line 223 - Provide Behat step-definitions for generic Commons tests.
Class
Code
public function afterUserCreate(AfterUserCreateScope $scope) {
$user = $scope
->getEntity();
$this->external_users[$user->name] = $user;
}