From 1ec2fbaada076e170087be7b97717244d8e81a17 Mon Sep 17 00:00:00 2001 From: Esa-Matti Suuronen Date: Tue, 21 May 2024 13:27:01 +0300 Subject: [PATCH] fix test --- tests/wpunit/SanityTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/wpunit/SanityTest.php b/tests/wpunit/SanityTest.php index 06d5a48..6eabe26 100644 --- a/tests/wpunit/SanityTest.php +++ b/tests/wpunit/SanityTest.php @@ -69,7 +69,9 @@ public function testCanUsePolylang() $this->assertTrue(defined('POLYLANG_VERSION')); $langs = pll_languages_list(['fields' => 'slug']); - $this->assertEquals($langs, ['en', 'fr', 'fi', 'de', 'es']); + asort($langs); + + $this->assertEquals($langs, ['es', 'en', 'fr', 'fi', 'de']); } public function testPluginIsActivated()