1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-23 11:22:33 +01:00

Added quick test to cover hypen breakage

This commit is contained in:
Dan Brown 2016-10-30 12:15:11 +00:00
parent b251671e3f
commit 0f2eaccb39
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -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();