Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -91,6 +91,12 @@ class EntitySearchTest extends TestCase | ... | @@ -91,6 +91,12 @@ class EntitySearchTest extends TestCase |
| 91 | ->see('Book Search Results')->see('.entity-list', $book->name); | 91 | ->see('Book Search Results')->see('.entity-list', $book->name); |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | + public function test_searching_hypen_doesnt_break() | ||
| 95 | + { | ||
| 96 | + $this->visit('/search/all?term=cat+-') | ||
| 97 | + ->seeStatusCode(200); | ||
| 98 | + } | ||
| 99 | + | ||
| 94 | public function test_ajax_entity_search() | 100 | public function test_ajax_entity_search() |
| 95 | { | 101 | { |
| 96 | $page = \BookStack\Page::all()->last(); | 102 | $page = \BookStack\Page::all()->last(); | ... | ... |
-
Please register or sign in to post a comment