@@ -46,6 +46,12 @@ class RelationshipTest extends TestCase
46
46
'port ' => '6379 '
47
47
]
48
48
],
49
+ 'valkey ' => [
50
+ [
51
+ 'host ' => 'cache ' ,
52
+ 'port ' => '6379 '
53
+ ]
54
+ ],
49
55
'elasticsearch ' => [
50
56
[
51
57
'host ' => 'elasticsearch ' ,
@@ -90,26 +96,29 @@ public function testGet()
90
96
{
91
97
$ mysqlVersion = '10.4 ' ;
92
98
$ redisVersion = '5.2 ' ;
99
+ $ valkeyVersion = '8.0 ' ;
93
100
$ esVersion = '7.7 ' ;
94
101
$ osVersion = '1.1 ' ;
95
102
$ rmqVersion = '3.5 ' ;
96
103
$ zookeeperVersion = 'latest ' ;
97
104
$ configWithType = $ this ->defaultConfigs ;
98
105
$ configWithType ['database ' ][0 ]['type ' ] = "mysql: $ mysqlVersion " ;
99
106
$ configWithType ['redis ' ][0 ]['type ' ] = "redis: $ redisVersion " ;
107
+ $ configWithType ['valkey ' ][0 ]['type ' ] = "valkey: $ valkeyVersion " ;
100
108
$ configWithType ['elasticsearch ' ][0 ]['type ' ] = "elasticsearch: $ esVersion " ;
101
109
$ configWithType ['opensearch ' ][0 ]['type ' ] = "opensearch: $ osVersion " ;
102
110
$ configWithType ['rabbitmq ' ][0 ]['type ' ] = "rabbitmq: $ rmqVersion " ;
103
111
$ configWithType ['zookeeper ' ][0 ]['type ' ] = "zookeeper: $ zookeeperVersion " ;
104
112
105
- $ this ->configMock ->expects ($ this ->exactly (8 ))
113
+ $ this ->configMock ->expects ($ this ->exactly (9 ))
106
114
->method ('hasServiceEnabled ' )
107
115
->willReturnCallback (function ($ service ) {
108
116
static $ services = [
109
117
ServiceInterface::SERVICE_DB ,
110
118
ServiceInterface::SERVICE_DB_QUOTE ,
111
119
ServiceInterface::SERVICE_DB_SALES ,
112
120
'redis ' ,
121
+ 'valkey ' ,
113
122
'elasticsearch ' ,
114
123
'opensearch ' ,
115
124
'rabbitmq ' ,
@@ -124,6 +133,7 @@ public function testGet()
124
133
true ,
125
134
true ,
126
135
true ,
136
+ true ,
127
137
true
128
138
];
129
139
@@ -138,6 +148,7 @@ public function testGet()
138
148
$ services = [
139
149
ServiceInterface::SERVICE_DB ,
140
150
'redis ' ,
151
+ 'valkey ' ,
141
152
'elasticsearch ' ,
142
153
'opensearch ' ,
143
154
'rabbitmq ' ,
@@ -147,13 +158,14 @@ public function testGet()
147
158
$ versions = [
148
159
$ mysqlVersion ,
149
160
$ redisVersion ,
161
+ $ valkeyVersion ,
150
162
$ esVersion ,
151
163
$ osVersion ,
152
164
$ rmqVersion ,
153
165
$ zookeeperVersion
154
166
];
155
167
156
- $ this ->configMock ->expects ($ this ->exactly (6 ))
168
+ $ this ->configMock ->expects ($ this ->exactly (7 ))
157
169
->method ('getServiceVersion ' )
158
170
->willReturnCallback (function ($ service ) use (
159
171
&$ services ,
0 commit comments