public function testLogsClear() { $logAmount = SlackLog::all()->count(); $this->assertGreaterThan(0, $logAmount); $command = new SlackLogsClear(); $command->handle(); $logAmount = SlackLog::all()->count(); // compare both array $this->assertEquals(0, $logAmount); }