X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/58fa7679bccafd00f9a50bcd4a87e96876331b03..refs/pull/2877/head:/tests/Commands/ClearActivityCommandTest.php diff --git a/tests/Commands/ClearActivityCommandTest.php b/tests/Commands/ClearActivityCommandTest.php index 751a165c6..172e6c6ae 100644 --- a/tests/Commands/ClearActivityCommandTest.php +++ b/tests/Commands/ClearActivityCommandTest.php @@ -1,4 +1,6 @@ -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', ]); } -} \ No newline at end of file +}