settings->enableSlackWebhook(); event(new CheckoutableCheckedOut( Component::factory()->ramCrucial8()->create(), Asset::factory()->laptopMbp()->create(), User::factory()->superuser()->create(), '' )); Notification::assertNothingSent(); } public function testComponentCheckinDoesNotSendSlackNotification() { Notification::fake(); $this->settings->enableSlackWebhook(); event(new CheckoutableCheckedIn( Component::factory()->ramCrucial8()->create(), Asset::factory()->laptopMbp()->create(), User::factory()->superuser()->create(), '' )); Notification::assertNothingSent(); } }