Add info to member entry

This commit is contained in:
philipp lang 2023-02-07 01:29:00 +01:00
parent d1983dcb64
commit 5890d0dbe1
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,11 @@ class MemberEntry extends Data
#[MapInputName('entries_nachname')]
#[WithCast(StringCast::class)]
public ?string $lastname,
public int $id,
#[MapInputName('entries_gruppierungId')]
public int $groupId,
) {
}
}

View File

@ -49,6 +49,8 @@ class SearchTest extends TestCase
$member = $this->login()->findNr(150);
$this->assertEquals('Philipp', $member->firstname);
$this->assertEquals(89418, $member->id);
$this->assertEquals(100105, $member->groupId);
Http::assertSent(function ($request) {
return $request->url() == $this->url(['mitgliedsNummber' => 150])
&& 'GET' == $request->method();