login()->loginNami(); } public function testItCanUpdateALocalGateway(): void { $mailgateway = Mailgateway::factory()->type(LocalType::class, [])->create(); $response = $this->patchJson("/api/mailgateway/{$mailgateway->id}", MailgatewayRequestFactory::new()->name('lala')->type(LocalType::class, [])->domain('example.com')->create()); $response->assertOk(); $this->assertDatabaseCount('mailgateways', 1); } }