@@ -19,7 +19,16 @@ protected function defaultConfigurationDataProvider(): array
19
19
{
20
20
return [
21
21
[
22
- 'version ' => '2.2.10 ' ,
22
+ 'version ' => '2.2.11 ' ,
23
+ ],
24
+ [
25
+ 'version ' => '2.3.0 ' ,
26
+ ],
27
+ [
28
+ 'version ' => '2.3.1 ' ,
29
+ ],
30
+ [
31
+ 'version ' => '2.3.2 ' ,
23
32
],
24
33
];
25
34
}
@@ -31,63 +40,50 @@ protected function wrongConfigurationDataProvider(): array
31
40
{
32
41
return [
33
42
[
34
- 'version ' => '2.2.10 ' ,
43
+ 'version ' => '2.3.0 ' ,
35
44
'wrongConfiguration ' => [
36
45
'stage ' => [
37
46
'deploy ' => [
38
- 'REDIS_BACKEND ' => '\Magento\Framework\Cache\Backend\Redis '
47
+ 'REDIS_BACKEND ' => 'TestRedisModel '
39
48
]
40
49
]
41
50
],
42
- 'buildSuccess ' => true ,
51
+ 'buildSuccess ' => false ,
43
52
'deploySuccess ' => false ,
44
- 'errorBuildMessage ' => '' ,
45
- 'errorDeployMessage ' => 'does not support Redis backend model '
46
- . '\'\Magento\Framework\Cache\Backend\Redis \'' ,
53
+ 'errorBuildMessage ' => 'The REDIS_BACKEND variable contains an invalid value TestRedisModel. '
54
+ . ' Use one of the available value options: Cm_Cache_Backend_Redis, '
55
+ . ' \Magento\Framework\Cache\Backend\Redis, '
56
+ . ' \Magento\Framework\Cache\Backend\RemoteSynchronizedCache. ' ,
57
+ 'errorDeployMessage ' => '' ,
47
58
],
48
59
[
49
- 'version ' => '2.2.10 ' ,
60
+ 'version ' => '2.3.2 ' ,
50
61
'wrongConfiguration ' => [
51
62
'stage ' => [
52
63
'deploy ' => [
53
- 'REDIS_BACKEND ' => '\Magento\Framework\Cache\Backend\RemoteSynchronizedCache '
64
+ 'REDIS_BACKEND ' => 'TestRedisModel '
54
65
]
55
66
]
56
67
],
57
- 'buildSuccess ' => true ,
68
+ 'buildSuccess ' => false ,
58
69
'deploySuccess ' => false ,
59
- 'errorBuildMessage ' => '' ,
60
- 'errorDeployMessage ' => 'does not support Redis backend model '
61
- . '\'\Magento\Framework\Cache\Backend\RemoteSynchronizedCache \'' ,
70
+ 'errorBuildMessage ' => 'The REDIS_BACKEND variable contains an invalid value TestRedisModel. '
71
+ . ' Use one of the available value options: Cm_Cache_Backend_Redis, '
72
+ . ' \Magento\Framework\Cache\Backend\Redis, '
73
+ . ' \Magento\Framework\Cache\Backend\RemoteSynchronizedCache. ' ,
74
+ 'errorDeployMessage ' => '' ,
62
75
],
63
76
];
64
77
}
65
78
66
79
/**
67
- * @return array
68
- * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
80
+ * @param \CliTester $I
81
+ * @param \Codeception\Example $data
82
+ * @throws \Robo\Exception\TaskException
83
+ * @skip
69
84
*/
70
- protected function goodConfigurationDataProvider ( ): array
85
+ public function testGoodConfiguration ( \ CliTester $ I , \ Codeception \ Example $ data ): void
71
86
{
72
- return [
73
- [
74
- 'version ' => '2.2.10 ' ,
75
- 'backendModel ' => [
76
- 'stage ' => [
77
- 'deploy ' => [
78
- 'REDIS_BACKEND ' => 'Cm_Cache_Backend_Redis ' ,
79
- ],
80
- ],
81
- ],
82
- 'expectedBackend ' => 'Cm_Cache_Backend_Redis ' ,
83
- 'expectedConfig ' => [
84
- 'backend_options ' => [
85
- 'server ' => 'redis ' ,
86
- 'port ' => '6379 ' ,
87
- 'database ' => 1 ,
88
- ],
89
- ],
90
- ],
91
- ];
87
+ return ;
92
88
}
93
89
}
0 commit comments