Skip to content

Commit 2094caa

Browse files
committed
Change getOtp to pass input along, adjust docblock to show it's optional
1 parent 2283f1d commit 2094caa

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Magento/FunctionalTestingFramework/DataTransport/Auth/Tfa/OTP.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class OTP
2727
/**
2828
* Return OTP for custom secret stored in `magento/tfa/OTP_SHARED_SECRET`
2929
*
30-
* @param string $path
30+
* @param string|null $path
3131
* @return string
3232
* @throws TestFrameworkException
3333
*/

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ public function makeScreenshot($name = null)
970970
/**
971971
* Return OTP based on a shared secret
972972
*
973-
* @param string $secretsPath
973+
* @param string|null $secretsPath
974974
* @return string
975975
* @throws TestFrameworkException
976976
*/

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,8 @@ public function generateStepsPhp($actionObjects, $generationScope = TestGenerato
12621262
$testSteps .= $this->wrapFunctionCallWithReturnValue(
12631263
$stepKey,
12641264
$actor,
1265-
$actionObject
1265+
$actionObject,
1266+
$input
12661267
);
12671268
break;
12681269
case "resizeWindow":

0 commit comments

Comments
 (0)