mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-01-19 08:42:48 +08:00
Added quick test to cover hypen breakage
This commit is contained in:
parent
b251671e3f
commit
0f2eaccb39
|
@ -91,6 +91,12 @@ class EntitySearchTest extends TestCase
|
|||
->see('Book Search Results')->see('.entity-list', $book->name);
|
||||
}
|
||||
|
||||
public function test_searching_hypen_doesnt_break()
|
||||
{
|
||||
$this->visit('/search/all?term=cat+-')
|
||||
->seeStatusCode(200);
|
||||
}
|
||||
|
||||
public function test_ajax_entity_search()
|
||||
{
|
||||
$page = \BookStack\Page::all()->last();
|
||||
|
|
Loading…
Reference in New Issue
Block a user