7
7
namespace Magento \Setup \Test \Unit \Model ;
8
8
9
9
use Magento \Framework \Config \ConfigOptionsListConstants ;
10
- use Magento \Setup \Model \ConfigOptionsList \Lock ;
11
10
use Magento \Setup \Model \ConfigGenerator ;
12
11
use Magento \Setup \Model \ConfigOptionsList ;
12
+ use Magento \Setup \Model \ConfigOptionsList \Lock ;
13
13
use Magento \Setup \Validator \DbValidator ;
14
14
15
+ /**
16
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
17
+ */
15
18
class ConfigOptionsListTest extends \PHPUnit \Framework \TestCase
16
19
{
17
20
/**
@@ -34,6 +37,11 @@ class ConfigOptionsListTest extends \PHPUnit\Framework\TestCase
34
37
*/
35
38
private $ dbValidator ;
36
39
40
+ /**
41
+ * @var \Magento\Framework\Encryption\KeyValidator|\PHPUnit_Framework_MockObject_MockObject
42
+ */
43
+ private $ encryptionKeyValidator ;
44
+
37
45
/**
38
46
* @var ConfigOptionsList\DriverOptions
39
47
*/
@@ -44,8 +52,14 @@ protected function setUp()
44
52
$ this ->generator = $ this ->createMock (\Magento \Setup \Model \ConfigGenerator::class);
45
53
$ this ->deploymentConfig = $ this ->createMock (\Magento \Framework \App \DeploymentConfig::class);
46
54
$ this ->dbValidator = $ this ->createMock (\Magento \Setup \Validator \DbValidator::class);
55
+ $ this ->encryptionKeyValidator = $ this ->createMock (\Magento \Framework \Encryption \KeyValidator::class);
47
56
$ this ->driverOptionsMock = $ this ->createMock (ConfigOptionsList \DriverOptions::class);
48
- $ this ->object = new ConfigOptionsList ($ this ->generator , $ this ->dbValidator , $ this ->driverOptionsMock );
57
+ $ this ->object = new ConfigOptionsList (
58
+ $ this ->generator ,
59
+ $ this ->dbValidator ,
60
+ $ this ->encryptionKeyValidator ,
61
+ $ this ->driverOptionsMock
62
+ );
49
63
}
50
64
51
65
public function testGetOptions ()
0 commit comments