]> BookStack Code Mirror - bookstack/blobdiff - tests/Commands/ClearActivityCommandTest.php
Add base64 image support
[bookstack] / tests / Commands / ClearActivityCommandTest.php
index 60f75675dace9877e6f4ecc6cace196a68b000a8..751a165c65c70e2085d9c598a1d816b3d4e2771b 100644 (file)
@@ -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');