Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreateUserStep.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Mtf\TestStep\TestStepInterface;
10 
14 class CreateUserStep implements TestStepInterface
15 {
21  private $user;
22 
26  public function __construct(User $user)
27  {
28  $this->user = $user;
29  }
30 
36  public function run()
37  {
38  $this->user->persist();
39 
40  return ['user' => $this->user];
41  }
42 }
$user
Definition: dummy_user.php:13