1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03: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

View File

@ -91,6 +91,12 @@ class EntitySearchTest extends TestCase
->see('Book Search Results')->see('.entity-list', $book->name); ->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() public function test_ajax_entity_search()
{ {
$page = \BookStack\Page::all()->last(); $page = \BookStack\Page::all()->last();