mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Performed fixes for failing tests on php8
- Commands that run a truncate DB action failed due to messing up the test transations so we mnaully work around that now to ensure a transaction exists for the test to cleanup afterwards. - Updated dompdf lib version
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
use BookStack\Actions\ActivityType;
|
||||
use BookStack\Entities\Models\Page;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ClearActivityCommandTest extends TestCase
|
||||
@ -18,7 +19,10 @@ class ClearActivityCommandTest extends TestCase
|
||||
'user_id' => $this->getEditor()->id
|
||||
]);
|
||||
|
||||
|
||||
DB::rollBack();
|
||||
$exitCode = \Artisan::call('bookstack:clear-activity');
|
||||
DB::beginTransaction();
|
||||
$this->assertTrue($exitCode === 0, 'Command executed successfully');
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user