Test that member model is returned from MemberPullAction

This commit is contained in:
philipp lang 2023-02-07 01:39:39 +01:00
parent e2c07a597b
commit 5ecc90aa8f
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class PullMemberActionTest extends TestCase
'gruppierung' => 'SG Wald', 'gruppierung' => 'SG Wald',
]); ]);
app(PullMemberAction::class)->handle(1000, 1001); $member = app(PullMemberAction::class)->handle(1000, 1001);
$group = Group::firstWhere('nami_id', 1000); $group = Group::firstWhere('nami_id', 1000);
$this->assertDatabaseHas('members', [ $this->assertDatabaseHas('members', [
@ -75,6 +75,7 @@ class PullMemberActionTest extends TestCase
'name' => 'SG Wald', 'name' => 'SG Wald',
'nami_id' => 1000, 'nami_id' => 1000,
]); ]);
$this->assertEquals(1001, $member->nami_id);
} }
public function testRegionIdIsSetToNull(): void public function testRegionIdIsSetToNull(): void