add a test to cover multiple non-existent negative tags

This commit is contained in:
Shish 2021-10-06 18:02:51 +01:00
parent d932178670
commit 6de6287663

View file

@ -205,6 +205,12 @@ class IndexTest extends ShimmiePHPUnitTestCase
// negative tag alone, should work
$this->assert_search_results(["-pbx"], [$image_ids[1]]);
// negative that doesn't exist
$this->assert_search_results(["-not_a_tag"], [$image_ids[1], $image_ids[0]]);
// multiple negative tags that don't exist
$this->assert_search_results(["-not_a_tag", "-also_not_a_tag"], [$image_ids[1], $image_ids[0]]);
}
// This isn't really an index thing, we just want to test this from