From 4f1907f13d931de313b07c3dee09af681be7d713 Mon Sep 17 00:00:00 2001
From: Robert Lange <robert.lange@uni-leipzig.de>
Date: Thu, 16 Mar 2023 14:03:00 +0100
Subject: [PATCH] refs #23448 [finc] fix SearchSpecsReaderTest setUpBeforeClass
 - keep parent signature return type

* fix test for local searchspecs match - add WorkKeys
---
 .../yaml/searchspecs/result/local/alpha/searchspecs.yaml    | 6 ++++++
 .../configs/yaml/searchspecs/result/local/searchspecs.yaml  | 6 ++++++
 .../src/fincTest/Config/SearchSpecsReaderTest.php           | 2 +-
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/module/finc/tests/fixtures/configs/yaml/searchspecs/result/local/alpha/searchspecs.yaml b/module/finc/tests/fixtures/configs/yaml/searchspecs/result/local/alpha/searchspecs.yaml
index a6a6eda38d0..744a2cc8d2d 100644
--- a/module/finc/tests/fixtures/configs/yaml/searchspecs/result/local/alpha/searchspecs.yaml
+++ b/module/finc/tests/fixtures/configs/yaml/searchspecs/result/local/alpha/searchspecs.yaml
@@ -513,3 +513,9 @@ CallNumber:
     dewey-search:
       - [callnumber_exact, 1000]
       - [callnumber_fuzzy, null]
+
+WorkKeys:
+  QueryFields:
+    work_keys_str_mv:
+      - [and, 100]
+      - [or, ~]
\ No newline at end of file
diff --git a/module/finc/tests/fixtures/configs/yaml/searchspecs/result/local/searchspecs.yaml b/module/finc/tests/fixtures/configs/yaml/searchspecs/result/local/searchspecs.yaml
index a6a6eda38d0..744a2cc8d2d 100644
--- a/module/finc/tests/fixtures/configs/yaml/searchspecs/result/local/searchspecs.yaml
+++ b/module/finc/tests/fixtures/configs/yaml/searchspecs/result/local/searchspecs.yaml
@@ -513,3 +513,9 @@ CallNumber:
     dewey-search:
       - [callnumber_exact, 1000]
       - [callnumber_fuzzy, null]
+
+WorkKeys:
+  QueryFields:
+    work_keys_str_mv:
+      - [and, 100]
+      - [or, ~]
\ No newline at end of file
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 395f6324965..8ddf1c528f4 100644
--- a/module/finc/tests/unit-tests/src/fincTest/Config/SearchSpecsReaderTest.php
+++ b/module/finc/tests/unit-tests/src/fincTest/Config/SearchSpecsReaderTest.php
@@ -76,7 +76,7 @@ class SearchSpecsReaderTest extends \VuFindTest\Config\SearchSpecsReaderTest
      *
      * @return void
      */
-    public static function setUpBeforeClass()
+    public static function setUpBeforeClass(): void
     {
         // Don't create test files, use existing.
 
-- 
GitLab