add timezone edit to profile (#63)

This commit is contained in:
Saeed Vaziry
2023-09-30 16:15:09 +02:00
committed by GitHub
parent 38e23a1ceb
commit 8282d39722
4 changed files with 23 additions and 0 deletions

View File

@ -29,6 +29,7 @@ public function test_profile_information_can_be_updated(): void
Livewire::test(UpdateProfileInformation::class)
->set('name', 'Test')
->set('email', 'test@example.com')
->set('timezone', 'Europe/Berlin')
->call('submit')
->assertSuccessful();
@ -36,5 +37,6 @@ public function test_profile_information_can_be_updated(): void
$this->assertSame('Test', $this->user->name);
$this->assertSame('test@example.com', $this->user->email);
$this->assertSame('Europe/Berlin', $this->user->timezone);
}
}