title: Laravel Queue::shouldReceive()
body: <p>I have the following in one of my routes</p>
  
  <pre><code>$rules = array(
      'name' =&gt; 'Required',
      'subject' =&gt; 'Required',
      'message' =&gt; 'Required',
      'email' =&gt; 'Required|Email',
      'recaptcha_response_field' =&gt; 'required|recaptcha'
  );
  
  $validator = Validator::make(Input::all(), $rules);
  
  if($validator-&gt;fails()){
      return Redirect::to('contact')-&gt;withInput()-&gt;withErrors($validator);
  }else{
  
      $data = array('name' =&gt; Input::get('name'),
                    'email' =&gt; Input::get('email'),
                    'text' =&gt; Input::get('message'),
                    'subject' =&gt; Input::get('subject'));  
  
      Queue::push('ContactQueue', $data);
  
      return Redirect::to('contact')-&gt;with('success', 'Message sent successfully');
  }
  </code></pre>
  
  <p>I am trying to write a unit test for the success scenario, I have the following:</p>
  
  <pre><code>public function testSuccess(){
      Validator::shouldReceive('make')-&gt;once()-&gt;andReturn(Mockery::mock(['fails' =&gt; false]));
  
      Queue::shouldReceive('push')-&gt;once();
  
      $this-&gt;call('POST', '/contact');
  
      $this-&gt;assertRedirectedTo('/contact');
  }
  </code></pre>
  
  <p>But I keep receiving the following error when trying to run phpunit:</p>
  
  <p><code>BadMethodCallException: Method Illuminate\Queue\QueueManager::connected() does not exist on this mock object</code></p>
  
  <p>Any ideas?</p>