From 5fccf17105b19f21de62ef80e0918dfba5f5464e Mon Sep 17 00:00:00 2001 From: Ernest Walzel Date: Thu, 14 Mar 2024 11:48:17 +0100 Subject: [PATCH] Fix tests --- tests/Feature/Api/V1/ItemsAggregationsTest.php | 2 ++ tests/Feature/Api/V2/ItemsTest.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Api/V1/ItemsAggregationsTest.php b/tests/Feature/Api/V1/ItemsAggregationsTest.php index 26e322af3..c3bd4267d 100644 --- a/tests/Feature/Api/V1/ItemsAggregationsTest.php +++ b/tests/Feature/Api/V1/ItemsAggregationsTest.php @@ -140,6 +140,8 @@ public function test_search_for_authors_with_same_name() $this->item1->authorities()->save($author1); $this->item2->authorities()->save($author2); + $this->item2->author = 'Wouwerman, Philips; Galanda, Mikuláš'; + $this->item2->save(); app(ItemRepository::class)->refreshIndex(); diff --git a/tests/Feature/Api/V2/ItemsTest.php b/tests/Feature/Api/V2/ItemsTest.php index c82abbb83..8530556ff 100644 --- a/tests/Feature/Api/V2/ItemsTest.php +++ b/tests/Feature/Api/V2/ItemsTest.php @@ -20,7 +20,7 @@ public function test_detail() $item = Item::factory()->create([ 'id' => 'test_id', 'title' => 'test_title', - 'author' => 'Věšín, Jaroslav', + 'author' => 'Wouwerman, Philips; Věšín, Jaroslav', 'dating' => 2000, 'date_earliest' => 2000, 'date_latest' => 2010,