File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Elasticsearch7/Test/Unit/Model/DataProvider/Base
Elasticsearch5/Model/Client Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -489,6 +489,10 @@ public function testDeleteMapping()
489
489
*/
490
490
public function testBuildConfig (array $ options , $ expectedResult ): void
491
491
{
492
+ if (!class_exists (\Elasticsearch \ClientBuilder::class)) {
493
+ $ this ->markTestSkipped ('AC-6597: Skipped as Elasticsearch 8 is configured ' );
494
+ }
495
+
492
496
$ buildConfig = new Elasticsearch ($ options );
493
497
$ config = $ this ->getPrivateMethod (Elasticsearch::class, 'buildConfig ' );
494
498
$ result = $ config ->invoke ($ buildConfig , $ options );
Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ class ElasticsearchTest extends TestCase
111
111
*/
112
112
protected function setUp (): void
113
113
{
114
+ if (!class_exists (\Elasticsearch \Client::class)) {
115
+ $ this ->markTestSkipped ('AC-6597: Skipped as Elasticsearch 8 is configured ' );
116
+ }
117
+
114
118
$ this ->objectManager = new ObjectManagerHelper ($ this );
115
119
$ this ->connectionManager = $ this ->getMockBuilder (ConnectionManager::class)
116
120
->disableOriginalConstructor ()
Original file line number Diff line number Diff line change @@ -226,6 +226,10 @@ public function testGetItemsWithEnabledSearchSuggestion(): void
226
226
*/
227
227
public function testGetItemsException (): void
228
228
{
229
+ if (!class_exists (\Elasticsearch \Client::class)) {
230
+ $ this ->markTestSkipped ('AC-6597: Skipped as Elasticsearch 8 is configured ' );
231
+ }
232
+
229
233
$ this ->prepareSearchQuery ();
230
234
$ exception = new BadRequest400Exception ();
231
235
You can’t perform that action at this time.
0 commit comments