File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
app/code/Magento/EncryptionKey
Test/Unit/Model/ResourceModel/Key Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ class Change extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
58
58
* @param \Magento\Config\Model\Config\Structure $structure
59
59
* @param \Magento\Framework\Encryption\EncryptorInterface $encryptor
60
60
* @param \Magento\Framework\App\DeploymentConfig\Writer $writer
61
- * @param \Magento\Framework\Math\Random $random
62
61
* @param string $connectionName
63
62
*/
64
63
public function __construct (
@@ -137,6 +136,16 @@ public function getRandom()
137
136
return $ this ->random ;
138
137
}
139
138
139
+ /**
140
+ * Set Random
141
+ *
142
+ * @param \Magento\Framework\Math\Random $random
143
+ */
144
+ public function setRandom (\Magento \Framework \Math \Random $ random )
145
+ {
146
+ $ this ->random = $ random ;
147
+ }
148
+
140
149
/**
141
150
* Gather all encrypted system config values and re-encrypt them
142
151
*
Original file line number Diff line number Diff line change @@ -89,9 +89,9 @@ public function setUp()
89
89
'resource ' => $ this ->resourceMock ,
90
90
'transactionManager ' => $ this ->tansactionMock ,
91
91
'relationProcessor ' => $ this ->objRelationMock ,
92
- 'random ' => $ this ->randomMock
93
92
]
94
93
);
94
+ $ this ->model ->setRandom ($ this ->randomMock );
95
95
}
96
96
97
97
private function setUpChangeEncryptionKey ()
You can’t perform that action at this time.
0 commit comments