mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Switched to database-based tracking for page editor
- Works better to avoid bad assumptions when showing the editor based upon content type. - Also updated some previous tests to cleaner format.
This commit is contained in:
@ -252,7 +252,9 @@ class PagesApiTest extends TestCase
|
||||
'tags' => [['name' => 'Category', 'value' => 'Testing']]
|
||||
];
|
||||
|
||||
$this->putJson($this->baseEndpoint . "/{$page->id}", $details);
|
||||
$resp = $this->putJson($this->baseEndpoint . "/{$page->id}", $details);
|
||||
$resp->assertOk();
|
||||
|
||||
$page->refresh();
|
||||
$this->assertGreaterThan(Carbon::now()->subDay()->unix(), $page->updated_at->unix());
|
||||
}
|
||||
|
Reference in New Issue
Block a user