1 | <?php |
||
28 | final class RegistrationAfterCheckoutContext implements Context |
||
29 | { |
||
30 | /** @var SharedStorageInterface */ |
||
31 | private $sharedStorage; |
||
32 | |||
33 | /** @var LoginPageInterface */ |
||
34 | private $loginPage; |
||
35 | |||
36 | /** @var ThankYouPageInterface */ |
||
37 | private $thankYouPage; |
||
38 | |||
39 | /** @var DashboardPageInterface */ |
||
40 | private $dashboardPage; |
||
41 | |||
42 | /** @var HomePageInterface */ |
||
43 | private $homePage; |
||
44 | |||
45 | /** @var VerificationPageInterface */ |
||
46 | private $verificationPage; |
||
47 | |||
48 | /** @var RegisterElementInterface */ |
||
49 | private $registerElement; |
||
50 | |||
51 | /** @var NotificationCheckerInterface */ |
||
52 | private $notificationChecker; |
||
53 | |||
54 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | * @When I specify a password as :password |
||
76 | */ |
||
77 | public function iSpecifyThePasswordAs(string $password): void |
||
82 | |||
83 | /** |
||
84 | * @When /^I confirm (this password)$/ |
||
85 | */ |
||
86 | public function iConfirmThisPassword(string $password): void |
||
90 | |||
91 | /** |
||
92 | * @When I register this account |
||
93 | */ |
||
94 | public function iRegisterThisAccount(): void |
||
98 | |||
99 | /** |
||
100 | * @When I verify my account using link sent to :customer |
||
101 | */ |
||
102 | public function iVerifyMyAccountUsingLink(CustomerInterface $customer): void |
||
109 | |||
110 | /** |
||
111 | * @Then the registration form should be prefilled with :email email |
||
112 | */ |
||
113 | public function theRegistrationFormShouldBePrefilledWithEmail(string $email): void |
||
119 | |||
120 | /** |
||
121 | * @Then I should be able to log in as :email with :password password |
||
122 | */ |
||
123 | public function iShouldBeAbleToLogInAsWithPassword(string $email, string $password): void |
||
132 | } |
||
133 |