title: Does Laravel 6 disable observers in factories / tests?
body: <p>Ive just written an observer thats sends an e-mail whenever a user is created.</p>
  
  <pre><code>class UserObserver
  {
      public function created(User $user)
      {
           Mail::to($user)-&gt;send(new UserAccountCreated(
              app('auth.password.broker')-&gt;createToken($user),
              $user
          ));
      }
  }
  </code></pre>
  
  <p>I ran phpunit to test if my observer works, and it passed. However I was expecting to get an email for each time my tests create a user.</p>
  
  <p>For example:</p>
  
  <pre><code>/** @test */
      public function an_admin_can_view_all_clients()
      {
          $user = factory(User::class)-&gt;create(['is_admin' =&gt; true]);
          $client = factory(Client::class)-&gt;create();
          $client2 = factory(Client::class)-&gt;create();
  
          $this-&gt;actingAs($user)-&gt;get(route('clients.index'))
              -&gt;assertSuccessful()
              -&gt;assertSee($client-&gt;name)
              -&gt;assertSee($client2-&gt;name);
      }
  </code></pre>
  
  <p>I would expect an email to be sent when that factory creates the user. But I don't receive one in Mailtrap.</p>
  
  <p>Just wondering if and where laravel disables my observer being triggered when my factory creates that user.</p>