File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -150,8 +150,24 @@ do_test_sqlsrv2019() {
150
150
phpunit vendor/bin/phpunit " $@ "
151
151
}
152
152
153
+ do_test_sqlsrv2022 () {
154
+ section_title " Running tests with SQL Server 2022"
155
+ docker compose -p query_builder_test exec \
156
+ -e DBAL_DRIVER=pdo_sqlsrv \
157
+ -e DBAL_DBNAME=test_db \
158
+ -e DBAL_HOST=sqlsrv2022 \
159
+ -e DBAL_PASSWORD=P@ssword123 \
160
+ -e DBAL_PORT=1433 \
161
+ -e DBAL_ROOT_PASSWORD=P@ssword123 \
162
+ -e DBAL_ROOT_USER=sa \
163
+ -e DBAL_USER=sa \
164
+ -e DATABASE_URL=" pdo-sqlsrv://sa:P%40ssword123@sqlsrv2022:1433/test_db?serverVersion=2022&charset=utf8&driverOptions[TrustServerCertificate]=true" \
165
+ phpunit vendor/bin/phpunit " $@ "
166
+ }
167
+
153
168
do_test_sqlsrv () {
154
169
do_test_sqlsrv2019 " $@ "
170
+ do_test_sqlsrv2022 " $@ "
155
171
}
156
172
157
173
# SQLite version depends upon the PHP embeded version or linked
@@ -176,6 +192,7 @@ do_test_all() {
176
192
do_test_postgresql10 " $@ "
177
193
do_test_postgresql16 " $@ "
178
194
do_test_sqlsrv2019 " $@ "
195
+ do_test_sqlsrv2022 " $@ "
179
196
do_test_sqlite " $@ "
180
197
}
181
198
Original file line number Diff line number Diff line change @@ -72,6 +72,18 @@ services:
72
72
- 9606:1433
73
73
networks :
74
74
- query-builder-test
75
+ sqlsrv2022 :
76
+ image : mcr.microsoft.com/mssql/server:2022-latest
77
+ restart : ' no'
78
+ environment :
79
+ ACCEPT_EULA : " y"
80
+ MSSQL_PID : Developer
81
+ MSSQL_SA_PASSWORD : P@ssword123
82
+ SA_PASSWORD : P@ssword123
83
+ ports :
84
+ - 9607:1433
85
+ networks :
86
+ - query-builder-test
75
87
76
88
networks :
77
89
query-builder-test :
You can’t perform that action at this time.
0 commit comments