1 | <?php |
||
27 | class FeatureContext implements Context |
||
28 | { |
||
29 | /** |
||
30 | * @var FixtureService |
||
31 | */ |
||
32 | private $fixtureService; |
||
33 | |||
34 | private $whitelistedInstitutions = []; |
||
35 | |||
36 | /** |
||
37 | * @var MinkContext |
||
38 | */ |
||
39 | private $minkContext; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private $currentToken; |
||
45 | |||
46 | public function __construct(FixtureService $fixtureService) |
||
50 | |||
51 | /** |
||
52 | * @BeforeFeature |
||
53 | */ |
||
54 | public static function setupDatabase(BeforeFeatureScope $scope) |
||
61 | |||
62 | /** |
||
63 | * @BeforeScenario |
||
64 | */ |
||
65 | public function gatherContexts(BeforeScenarioScope $scope) |
||
70 | |||
71 | /** |
||
72 | * @Given /^a user from "([^"]*)" identified by "([^"]*)" with a vetted "([^"]*)" token$/ |
||
73 | */ |
||
74 | public function aUserIdentifiedByWithAVettedToken($institution, $nameId, $tokenType) |
||
88 | |||
89 | /** |
||
90 | * @Given /^a user from "([^"]*)" identified by "([^"]*)"$/ |
||
91 | */ |
||
92 | public function aUserIdentifiedBy($institution, $nameId) |
||
96 | |||
97 | /** |
||
98 | * @Then I should see the Yubikey OTP screen |
||
99 | */ |
||
100 | public function iShouldSeeTheYubikeyOtpScreen() |
||
105 | |||
106 | /** |
||
107 | * @Then I should see the SMS verification screen |
||
108 | */ |
||
109 | public function iShouldSeeTheSMSScreen() |
||
117 | |||
118 | /** |
||
119 | * @Given /^I should see the Tiqr authentication screen$/ |
||
120 | */ |
||
121 | public function iShouldSeeTheTiqrAuthenticationScreen() |
||
127 | |||
128 | /** |
||
129 | * @When I enter the OTP |
||
130 | */ |
||
131 | public function iEnterTheOtp() |
||
137 | |||
138 | /** |
||
139 | * @When I enter the SMS verification code |
||
140 | */ |
||
141 | public function iEnterTheSmsVerificationCode() |
||
147 | |||
148 | |||
149 | /** |
||
150 | * @When I finish the Tiqr authentication |
||
151 | */ |
||
152 | public function iFinishGsspAuthentication() |
||
158 | |||
159 | |||
160 | |||
161 | /** |
||
162 | * @Given /^a whitelisted institution ([^"]*)$/ |
||
163 | */ |
||
164 | public function aWhitelistedInstitution($institution) |
||
168 | |||
169 | /** |
||
170 | * @Then /^I select my ([^"]*) token on the WAYG$/ |
||
171 | */ |
||
172 | public function iShouldSelectMyTokenOnTheWAYG($tokenType) |
||
186 | |||
187 | /** |
||
188 | * @Then /^I should be on the WAYG$/ |
||
189 | */ |
||
190 | public function iShouldBeOnTheWAYG() |
||
194 | |||
195 | /** |
||
196 | * @Then /^an error response is posted back to the SP$/ |
||
197 | */ |
||
198 | public function anErrorResponseIsPostedBackToTheSP() |
||
202 | |||
203 | /** |
||
204 | * @Given /^I cancel the authentication$/ |
||
205 | */ |
||
206 | public function iCancelTheAuthentication() |
||
210 | } |
||
211 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.