with('useEncryption') ->andReturn(false); $twofaccount = TwoFAccount::factory()->make(); $event = new TwoFAccountDeleted($twofaccount); $this->assertSame($twofaccount, $event->twofaccount); } }