Skip to content

Commit eaf9fca

Browse files
committed
AC-8017 system settings improvement
1 parent 66a4295 commit eaf9fca

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/EncryptionKey/Test/Unit/Model/ResourceModel/Key

1 file changed

+2
-1
lines changed

app/code/Magento/EncryptionKey/Test/Unit/Model/ResourceModel/Key/ChangeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Magento\EncryptionKey\Model\ResourceModel\Key\Change;
1212
use Magento\Framework\App\DeploymentConfig\Writer;
1313
use Magento\Framework\App\ResourceConnection;
14+
use Magento\Framework\Config\ConfigOptionsListConstants;
1415
use Magento\Framework\DB\Adapter\AdapterInterface;
1516
use Magento\Framework\DB\Select;
1617
use Magento\Framework\Encryption\EncryptorInterface;
@@ -157,7 +158,7 @@ public function testChangeEncryptionKeyAutogenerate()
157158
{
158159
$this->setUpChangeEncryptionKey();
159160
$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());
161162
}
162163

163164
public function testChangeEncryptionKeyThrowsException()

0 commit comments

Comments
 (0)