Skip to content

Commit 3dabaf8

Browse files
authored
Merge pull request #10 from makao/master
Removed newline character from MFTF config:show bool cast
2 parents 821691f + ca49874 commit 3dabaf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Test/Mftf/Helper/FillOtpOverride.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function execute(string $tfaAuthCodeSelector, string $confirmSelector, st
4343
private function checkIfTwoFactorIsEnabled(MagentoWebDriver $webDriver): bool
4444
{
4545
try {
46-
return (bool)$webDriver->magentoCLI('config:show twofactorauth/general/enable');
46+
return (bool)str_replace(PHP_EOL, '', $webDriver->magentoCLI('config:show twofactorauth/general/enable'));
4747
} catch (TestFrameworkException $exception) {
4848

4949
return false;

Test/Mftf/Helper/SetSharedSecretOverride.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function execute(string $username): void
4949
private function checkIfTwoFactorIsEnabled(MagentoWebDriver $webDriver): bool
5050
{
5151
try {
52-
return (bool)$webDriver->magentoCLI('config:show twofactorauth/general/enable');
52+
return (bool)str_replace(PHP_EOL, '', $webDriver->magentoCLI('config:show twofactorauth/general/enable'));
5353
} catch (TestFrameworkException $exception) {
5454

5555
return false;

0 commit comments

Comments
 (0)