Skip to content

Commit

Permalink
fix fragile test that depended on current locale
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Aug 30, 2023
1 parent 48b31a5 commit fff56d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ConceptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit fff56d0

Please sign in to comment.