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\Actions\ActivityType;
use BookStack\Entities\Models\Page;
@ -14,20 +16,18 @@ class ClearActivityCommandTest extends TestCase
\Activity::addForEntity($page, ActivityType::PAGE_UPDATE);
$this->assertDatabaseHas('activities', [
'type' => 'page_update',
'type' => 'page_update',
'entity_id' => $page->id,
'user_id' => $this->getEditor()->id
'user_id' => $this->getEditor()->id,
]);
DB::rollBack();
$exitCode = \Artisan::call('bookstack:clear-activity');
DB::beginTransaction();
$this->assertTrue($exitCode === 0, 'Command executed successfully');
$this->assertDatabaseMissing('activities', [
'type' => 'page_update'
'type' => 'page_update',
]);
}
}
}