From a5130110a39db0542a747be308d82a7cd767813a Mon Sep 17 00:00:00 2001
From: Alexander Purr <purr@ub.uni-leipzig.de>
Date: Wed, 1 Jun 2022 15:33:11 +0200
Subject: [PATCH] refs #21230 [finc] improve searchspecs reader test &
 alphabetic yaml dump * ksort (by key sort / alphabetical) searchspecs arrays
 for better comparison * simplifies checking diffs on commit

---
 .../unit-tests/src/fincTest/Config/SearchSpecsReaderTest.php   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/module/finc/tests/unit-tests/src/fincTest/Config/SearchSpecsReaderTest.php b/module/finc/tests/unit-tests/src/fincTest/Config/SearchSpecsReaderTest.php
index e172829e6ca..395f6324965 100644
--- a/module/finc/tests/unit-tests/src/fincTest/Config/SearchSpecsReaderTest.php
+++ b/module/finc/tests/unit-tests/src/fincTest/Config/SearchSpecsReaderTest.php
@@ -120,6 +120,9 @@ class SearchSpecsReaderTest extends \VuFindTest\Config\SearchSpecsReaderTest
 
         $resultArray    = $this->callMethod(self::$reader, 'getFromPaths', [$vufindYaml, $currentEnvYaml]);
         $expectedArray  = $this->callMethod(self::$reader, 'getFromPaths', [$expectedYaml]);
+    
+        ksort($resultArray);
+        ksort($expectedArray);
 
         if ($printResult) {
             file_put_contents("$this->basePathToLogging/input_reverse.yaml", Yaml::dump($resultArray, 4, 2));
-- 
GitLab