This commit is contained in:
philipp lang 2025-03-29 00:48:43 +01:00
parent bc61530e51
commit 8adf858abc
1 changed files with 2 additions and 5 deletions

View File

@ -155,14 +155,11 @@ class PutMemberTest extends TestCase
]);
}
public function testGenderCanBeNull(): void
public function testUpdateToDefaultGenderIdAndRegionIdIfTheyAreNull(): void
{
app(MemberFake::class)
->updatesSuccessfully(103, 16)
->shows(103, 16, [
'foreign' => 'fff',
'kontoverbindung' => ['a' => 'b'],
]);
->shows(103, 16, []);
$response = $this->login()->putMember(Member::toFactory()->inNami(103, 16)->toMember(['genderId' => null, 'regionId' => null]));
$this->assertEquals(16, $response);