@@ -23,15 +23,15 @@ public function testBasicEncryptDecrypt(): void
23
23
{
24
24
$ testKey = 'magento/myKey ' ;
25
25
$ testValue = 'myValue ' ;
26
- $ creds = ["$ testKey= $ testValue " ];
26
+ $ cred = ["$ testKey= $ testValue " ];
27
27
28
28
$ fileStorage = new FileStorage ();
29
29
$ reflection = new ReflectionClass (FileStorage::class);
30
30
31
31
// Emulate initialize() function result with the test credentials
32
32
$ reflectionMethod = $ reflection ->getMethod ('encryptCredFileContents ' );
33
33
$ reflectionMethod ->setAccessible (true );
34
- $ secretData = $ reflectionMethod ->invokeArgs ($ fileStorage , [$ creds ]);
34
+ $ secretData = $ reflectionMethod ->invokeArgs ($ fileStorage , [$ cred ]);
35
35
36
36
// Set encrypted test credentials to the private 'secretData' property
37
37
$ reflectionProperty = $ reflection ->getProperty ('secretData ' );
@@ -59,15 +59,15 @@ public function testEmptyValueEncryptDecrypt(): void
59
59
$ this ->expectException (TestFrameworkException::class);
60
60
61
61
$ testKey = 'magento/myKey ' ;
62
- $ creds = ["$ testKey " ];
62
+ $ cred = ["$ testKey " ];
63
63
64
64
$ fileStorage = new FileStorage ();
65
65
$ reflection = new ReflectionClass (FileStorage::class);
66
66
67
67
// Emulate initialize() function result with the test credentials
68
68
$ reflectionMethod = $ reflection ->getMethod ('encryptCredFileContents ' );
69
69
$ reflectionMethod ->setAccessible (true );
70
- $ secretData = $ reflectionMethod ->invokeArgs ($ fileStorage , [$ creds ]);
70
+ $ secretData = $ reflectionMethod ->invokeArgs ($ fileStorage , [$ cred ]);
71
71
72
72
// Set encrypted test credentials to the private 'secretData' property
73
73
$ reflectionProperty = $ reflection ->getProperty ('secretData ' );
0 commit comments