@@ -172,6 +172,23 @@ public static function setUpBeforeClass(): void
172
172
self ::$ client ->update ($ update );
173
173
}
174
174
175
+ // UTF8TEST was removed for Solr 9.8 in SOLR-17556
176
+ if (9 <= self ::$ solrVersion ) {
177
+ $ update = self ::$ client ->createUpdate ();
178
+
179
+ $ utf8test = $ update ->createDocument ();
180
+ $ utf8test ->setField ('id ' , 'UTF8TEST ' );
181
+ $ utf8test ->setField ('manu ' , 'Apache Software Foundation ' );
182
+ $ utf8test ->setField ('cat ' , 'software ' );
183
+ $ utf8test ->setField ('cat ' , 'search ' );
184
+ $ utf8test ->setField ('features ' , 'êâîôû ' );
185
+ $ utf8test ->setField ('price ' , 0.0 );
186
+ $ utf8test ->setField ('inStock ' , true );
187
+
188
+ $ update ->addDocument ($ utf8test );
189
+ self ::$ client ->update ($ update );
190
+ }
191
+
175
192
$ update = self ::$ client ->createUpdate ();
176
193
$ update ->addCommit (false , true );
177
194
self ::$ client ->update ($ update );
@@ -4953,6 +4970,13 @@ public function testManagedStopwords()
4953
4970
*/
4954
4971
public function testManagedStopwordsCreation (string $ name , string $ term )
4955
4972
{
4973
+ // this test triggers an error for Solr 9.8 in SolrCloud mode
4974
+ if (9 === self ::$ solrVersion && $ this instanceof AbstractCloudTestCase) {
4975
+ $ this ->expectNotToPerformAssertions ();
4976
+
4977
+ return ;
4978
+ }
4979
+
4956
4980
// don't use invalid filename characters in list name on Windows to avoid running into SOLR-15895
4957
4981
if (self ::$ isSolrOnWindows ) {
4958
4982
$ name = str_replace ([': ' , '/ ' , '? ' ], '' , $ name );
@@ -5118,6 +5142,13 @@ public function testManagedSynonyms()
5118
5142
*/
5119
5143
public function testManagedSynonymsCreation (string $ name , string $ term )
5120
5144
{
5145
+ // this test triggers an error for Solr 9.8 in SolrCloud mode
5146
+ if (9 === self ::$ solrVersion && $ this instanceof AbstractCloudTestCase) {
5147
+ $ this ->expectNotToPerformAssertions ();
5148
+
5149
+ return ;
5150
+ }
5151
+
5121
5152
// don't use invalid filename characters in map name on Windows to avoid running into SOLR-15895
5122
5153
if (self ::$ isSolrOnWindows ) {
5123
5154
$ name = str_replace ([': ' , '/ ' , '? ' ], '' , $ name );
0 commit comments