1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Apply fixes from StyleCI

This commit is contained in:
Dan Brown
2021-06-26 15:23:15 +00:00
committed by StyleCI Bot
parent 3a402f6adc
commit 934a833818
349 changed files with 3655 additions and 2625 deletions

View File

@ -1,4 +1,6 @@
<?php namespace Tests\Commands;
<?php
namespace Tests\Commands;
use BookStack\Entities\Models\Page;
use BookStack\Entities\Repos\PageRepo;
@ -17,11 +19,11 @@ class ClearRevisionsCommandTest extends TestCase
$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');
@ -29,11 +31,11 @@ class ClearRevisionsCommandTest extends TestCase
$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]);
@ -41,7 +43,7 @@ class ClearRevisionsCommandTest extends TestCase
$this->assertDatabaseMissing('page_revisions', [
'page_id' => $page->id,
'type' => 'update_draft'
'type' => 'update_draft',
]);
}
}
}