You are here

public function TestSubContext::afterUserCreate in Panopoly 7

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

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

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

Class

TestSubContext

Code

public function afterUserCreate(AfterUserCreateScope $scope) {
  $user = $scope
    ->getEntity();
  $this->external_users[$user->name] = $user;
}