diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-17 08:48:53 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-03-17 08:58:42 +0100 |
commit | 5ab065bbffbff041f272fab1d53c86aa03ebf949 (patch) | |
tree | 0707e340a195037f79ef601d87b9465cc81c327a /tests/Unit | |
parent | 79c9df8dc1eb54527406313d6e8d56aaf7a41f59 (diff) |
✅ Item: update search index test to use categories
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests/Unit')
-rw-r--r-- | tests/Unit/Db/ItemTest.php | 3 |
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('äuthor'); $item->setTitle('<a>tä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()); } |