public function TestSubContext::afterUserCreate in Panopoly 8.2
Same name and namespace in other branches
- 7 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 513 - Provide Behat step-definitions for generic Panopoly tests.
Class
- TestSubContext
- Behat sub-context for Panopoly.
Code
public function afterUserCreate(AfterUserCreateScope $scope) {
$user = $scope
->getEntity();
$this->externalUsers[$user->name] = $user;
}