title: Test Queue functionality?
body: <p>According to the <a href="https://laravel.com/docs/5.5/mocking#queue-fake" rel="noreferrer">Laravel Documentation</a>, I can use <code>Queue::fake();</code> prevent jobs from being queued.</p>
  
  <p>What is not clear how to test (PHPUnit) a few methods in the Job Class while it is not being queued.</p>
  
  <p>For example:</p>
  
  <pre><code>class ActionJob extends Job
  {
      public $tries = 3;
      protected $data;
  
      public function __construct($data)
      {
          $this-&gt;data = $data;
      }
  
  
      public function handle()
      {
          if ($this-&gt;data['action'] == "deleteAllFiles") {
              $this-&gt;deleteAllFiles();
          }
      }
  
      protected function deleteAllFiles()
      {
          //delete all the files then return true
          // if failed to delete return false
      }
  }
  </code></pre>
  
  <p>Here is example I want to test <code>deleteAllFiles()</code> - do I need to mock it? </p>