From 442316ce852500c7acafb79a5d37cd4da0c484bd Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Tue, 10 Dec 2024 15:28:41 +0100 Subject: [PATCH 1/2] [CI] Skipped MaxLanguagesContentServiceTest::testCreateContent on solr, due to not mapped languages --- .../ContentService/MaxLanguagesContentServiceTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/Core/Repository/ContentService/MaxLanguagesContentServiceTest.php b/tests/integration/Core/Repository/ContentService/MaxLanguagesContentServiceTest.php index 1885328cce..f8a1c8e347 100644 --- a/tests/integration/Core/Repository/ContentService/MaxLanguagesContentServiceTest.php +++ b/tests/integration/Core/Repository/ContentService/MaxLanguagesContentServiceTest.php @@ -42,6 +42,10 @@ protected function setUp(): void */ public function testCreateContent(): void { + if (getenv('SEARCH_ENGINE') === 'solr') { + self::markTestSkipped('Skipped on Solr as languages are not mapped to solr endpoints'); + } + $names = array_merge(...array_map( static fn (array $languageData): array => [ $languageData['languageCode'] => $languageData['name'] . ' name', From 83f417175f668c1132e4c25a0c7c08b5d37592c7 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Tue, 10 Dec 2024 15:33:50 +0100 Subject: [PATCH 2/2] Skipped for non legacy search engines --- .../ContentService/MaxLanguagesContentServiceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/Core/Repository/ContentService/MaxLanguagesContentServiceTest.php b/tests/integration/Core/Repository/ContentService/MaxLanguagesContentServiceTest.php index f8a1c8e347..3fb4b8d4aa 100644 --- a/tests/integration/Core/Repository/ContentService/MaxLanguagesContentServiceTest.php +++ b/tests/integration/Core/Repository/ContentService/MaxLanguagesContentServiceTest.php @@ -42,8 +42,8 @@ protected function setUp(): void */ public function testCreateContent(): void { - if (getenv('SEARCH_ENGINE') === 'solr') { - self::markTestSkipped('Skipped on Solr as languages are not mapped to solr endpoints'); + if (getenv('SEARCH_ENGINE') !== 'legacy') { + self::markTestSkipped('Skipped on non-LSE as it requires specific configuration'); } $names = array_merge(...array_map(