From 5ab065bbffbff041f272fab1d53c86aa03ebf949 Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Wed, 17 Mar 2021 08:48:53 +0100 Subject: =?UTF-8?q?=E2=9C=85=20Item:=20update=20search=20index=20test=20to?= =?UTF-8?q?=20use=20categories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- tests/Unit/Db/ItemTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Db/ItemTest.php b/tests/Unit/Db/ItemTest.php index 80e3d630f..e5a2c844d 100644 --- a/tests/Unit/Db/ItemTest.php +++ b/tests/Unit/Db/ItemTest.php @@ -244,8 +244,9 @@ class ItemTest extends TestCase $item->setUrl('http://link'); $item->setAuthor('äuthor'); $item->setTitle('tätle'); + $item->setCategories(['food', 'travel']); $item->generateSearchIndex(); - $expected = 'somethängäuthortätlehttp://link'; + $expected = 'somethängäuthortätlefoodtravelhttp://link'; $this->assertEquals($expected, $item->getSearchIndex()); } -- cgit v1.2.3