From fff56d0337e51f5fd103b9f7b9fb57b19eff4e0a Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Wed, 30 Aug 2023 12:38:40 +0300 Subject: [PATCH] fix fragile test that depended on current locale --- tests/ConceptTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ConceptTest.php b/tests/ConceptTest.php index 5921ea9ff..f85cbcae0 100644 --- a/tests/ConceptTest.php +++ b/tests/ConceptTest.php @@ -110,6 +110,9 @@ public function testSetFoundBy() */ public function testGetForeignLabels() { + # make sure UK English collation is being used as the default + setlocale(LC_ALL, "en_GB.utf8"); + $labels = $this->concept->getForeignLabels(); $this->assertEquals('Karppi', $labels['Finnish']['prefLabel'][0]->getLabel());