File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/EncryptionKey/Test/Unit/Model/ResourceModel/Key Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \EncryptionKey \Model \ResourceModel \Key \Change ;
12
12
use Magento \Framework \App \DeploymentConfig \Writer ;
13
13
use Magento \Framework \App \ResourceConnection ;
14
+ use Magento \Framework \Config \ConfigOptionsListConstants ;
14
15
use Magento \Framework \DB \Adapter \AdapterInterface ;
15
16
use Magento \Framework \DB \Select ;
16
17
use Magento \Framework \Encryption \EncryptorInterface ;
@@ -157,7 +158,7 @@ public function testChangeEncryptionKeyAutogenerate()
157
158
{
158
159
$ this ->setUpChangeEncryptionKey ();
159
160
$ this ->randomMock ->expects ($ this ->once ())->method ('getRandomBytes ' )->willReturn ('abc ' );
160
- $ this ->assertEquals ('abc ' , $ this ->model ->changeEncryptionKey ());
161
+ $ this ->assertEquals (ConfigOptionsListConstants:: STORE_KEY_ENCODED_RANDOM_STRING_PREFIX . 'abc ' , $ this ->model ->changeEncryptionKey ());
161
162
}
162
163
163
164
public function testChangeEncryptionKeyThrowsException ()
You can’t perform that action at this time.
0 commit comments