-<?php namespace Tests\Commands;
+<?php
+
+namespace Tests\Commands;
use BookStack\Entities\Models\Page;
use BookStack\Entities\Repos\PageRepo;
$this->assertDatabaseHas('page_revisions', [
'page_id' => $page->id,
- 'type' => 'version'
+ 'type' => 'version',
]);
$this->assertDatabaseHas('page_revisions', [
'page_id' => $page->id,
- 'type' => 'update_draft'
+ 'type' => 'update_draft',
]);
$exitCode = Artisan::call('bookstack:clear-revisions');
$this->assertDatabaseMissing('page_revisions', [
'page_id' => $page->id,
- 'type' => 'version'
+ 'type' => 'version',
]);
$this->assertDatabaseHas('page_revisions', [
'page_id' => $page->id,
- 'type' => 'update_draft'
+ 'type' => 'update_draft',
]);
$exitCode = Artisan::call('bookstack:clear-revisions', ['--all' => true]);
$this->assertDatabaseMissing('page_revisions', [
'page_id' => $page->id,
- 'type' => 'update_draft'
+ 'type' => 'update_draft',
]);
}
-}
\ No newline at end of file
+}