Skip to content

Commit 6563d30

Browse files
committed
Refactor CredentialStorage after FileStorage constructor elimination
1 parent e8bbf77 commit 6563d30

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/CredentialStore.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,13 @@ private function initializeCredentialStorage()
221221
*
222222
* @return void
223223
*/
224-
private function initializeFileStorage()
224+
private function initializeFileStorage(): void
225225
{
226226
// Initialize file storage
227227
try {
228-
$this->credStorage[self::ARRAY_KEY_FOR_FILE] = new FileStorage();
228+
$fileStorage = new FileStorage();
229+
$fileStorage->initialize();
230+
$this->credStorage[self::ARRAY_KEY_FOR_FILE] = $fileStorage;
229231
} catch (TestFrameworkException $e) {
230232
// Print error message in console
231233
print_r($e->getMessage());

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage/FileStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FileStorage extends BaseStorage
2626
* @return void
2727
* @throws TestFrameworkException
2828
*/
29-
private function initialize(): void
29+
public function initialize(): void
3030
{
3131
if (!$this->secretData) {
3232
$creds = $this->readInCredentialsFile();

0 commit comments

Comments
 (0)