1 | <?php |
||
26 | class FeatureContext implements Context |
||
27 | { |
||
28 | /** |
||
29 | * @var FixtureService |
||
30 | */ |
||
31 | private $fixtureService; |
||
32 | |||
33 | private $whitelistedInstitutions = []; |
||
34 | |||
35 | /** |
||
36 | * @var MinkContext |
||
37 | */ |
||
38 | private $minkContext; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | private $currentToken; |
||
44 | |||
45 | public function __construct(FixtureService $fixtureService) |
||
49 | |||
50 | /** |
||
51 | * @BeforeFeature |
||
52 | */ |
||
53 | public static function setupDatabase(BeforeFeatureScope $scope) |
||
60 | |||
61 | /** |
||
62 | * @BeforeScenario |
||
63 | */ |
||
64 | public function gatherContexts(BeforeScenarioScope $scope) |
||
69 | |||
70 | /** |
||
71 | * @Given /^a user from ([^"]*) identified by ([^"]*) with a vetted ([^"]*) token$/ |
||
72 | */ |
||
73 | public function aUserIdentifiedByWithAVettedToken($institution, $nameId, $tokenType) |
||
87 | |||
88 | /** |
||
89 | * @Given /^a user from ([^"]*) identified by ([^"]*)$/ |
||
90 | */ |
||
91 | public function aUserIdentifiedBy($institution, $nameId) |
||
95 | |||
96 | /** |
||
97 | * @Then I should see the Yubikey OTP screen |
||
98 | */ |
||
99 | public function iShouldSeeTheYubikeyOtpScreen() |
||
104 | |||
105 | /** |
||
106 | * @Then I should see the SMS verification screen |
||
107 | */ |
||
108 | public function iShouldSeeTheSMSScreen() |
||
116 | |||
117 | /** |
||
118 | * @Given /^I should see the Tiqr authentication screen$/ |
||
119 | */ |
||
120 | public function iShouldSeeTheTiqrAuthenticationScreen() |
||
126 | |||
127 | /** |
||
128 | * @When I enter the OTP |
||
129 | */ |
||
130 | public function iEnterTheOtp() |
||
136 | |||
137 | /** |
||
138 | * @When I enter the SMS verification code |
||
139 | */ |
||
140 | public function iEnterTheSmsVerificationCode() |
||
146 | |||
147 | |||
148 | /** |
||
149 | * @When I finish the Tiqr authentication |
||
150 | */ |
||
151 | public function iFinishGsspAuthentication() |
||
157 | |||
158 | |||
159 | |||
160 | /** |
||
161 | * @Given /^a whitelisted institution ([^"]*)$/ |
||
162 | */ |
||
163 | public function aWhitelistedInstitution($institution) |
||
167 | |||
168 | /** |
||
169 | * @Then /^I select my ([^"]*) token on the WAYG$/ |
||
170 | */ |
||
171 | public function iShouldSelectMyTokenOnTheWAYG($tokenType) |
||
185 | |||
186 | /** |
||
187 | * @Then /^I should be on the WAYG$/ |
||
188 | */ |
||
189 | public function iShouldBeOnTheWAYG() |
||
193 | } |
||
194 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.