summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-17 08:48:53 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-03-17 08:58:42 +0100
commit5ab065bbffbff041f272fab1d53c86aa03ebf949 (patch)
tree0707e340a195037f79ef601d87b9465cc81c327a
parent79c9df8dc1eb54527406313d6e8d56aaf7a41f59 (diff)
✅ Item: update search index test to use categories
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r--tests/Unit/Db/ItemTest.php3
1 files changed, 2 insertions, 1 deletions
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('&auml;uthor');
$item->setTitle('<a>t&auml;tle</a>');
+ $item->setCategories(['food', 'travel']);
$item->generateSearchIndex();
- $expected = 'somethängäuthortätlehttp://link';
+ $expected = 'somethängäuthortätlefoodtravelhttp://link';
$this->assertEquals($expected, $item->getSearchIndex());
}