mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Testing: Improved reliability
- Added extra column/value check for page revision test for accuracy. - Changed search sort test to use more reliable values. - Change due to database seeding somtimes generating values that proceeded the test value, expected to be first, in sort results.
This commit is contained in:
@@ -102,6 +102,7 @@ class UpdateUrlCommandTest extends TestCase
|
||||
setting()->flushCache();
|
||||
|
||||
$this->assertDatabaseHas('page_revisions', [
|
||||
'page_id' => $page->id,
|
||||
'markdown' => '[A link 1](https://cats.example.com/donkey/cat)',
|
||||
'html' => '<p id="bkmrk-a-link-1"><a href="https://cats.example.com/donkey/cat">A link 1</a></p>' . "\n"
|
||||
]);
|
||||
|
Reference in New Issue
Block a user