add a test to cover multiple non-existent negative tags
This commit is contained in:
parent
d932178670
commit
6de6287663
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue