Add test for member pull
This commit is contained in:
parent
6bb8967c9e
commit
ee6927528f
|
@ -3,7 +3,6 @@
|
|||
namespace Tests\Feature\Member;
|
||||
|
||||
use App\Actions\MemberPullAction;
|
||||
use App\Activity;
|
||||
use App\Member\Member;
|
||||
use App\Member\Membership;
|
||||
use App\Setting\NamiSettings;
|
||||
|
@ -21,7 +20,7 @@ class MemberPullActionTest extends TestCase
|
|||
{
|
||||
$member = Member::factory()
|
||||
->defaults()
|
||||
->has(Membership::factory()->inNami(60)->for(Activity::factory()))
|
||||
->has(Membership::factory()->inNami(60)->in('€ LeiterIn', 63))
|
||||
->inNami(123)
|
||||
->create();
|
||||
app(MemberFake::class)->shows(55, 123, [
|
||||
|
@ -45,12 +44,12 @@ class MemberPullActionTest extends TestCase
|
|||
app(MembershipFake::class)
|
||||
->fetches(123, [['id' => 60]])
|
||||
->shows(123, [
|
||||
'id' => 60,
|
||||
'untergliederungId' => 2,
|
||||
'taetigkeitId' => 1,
|
||||
'gruppierungId' => 1400,
|
||||
'aktivVon' => '2022-02-03T00:00:00',
|
||||
'aktivBis' => '2022-02-03T00:00:01',
|
||||
'id' => 60,
|
||||
'untergliederungId' => 2,
|
||||
'taetigkeitId' => 1,
|
||||
'gruppierungId' => 1400,
|
||||
'aktivVon' => '2022-02-03T00:00:00',
|
||||
'aktivBis' => '2022-02-03T00:00:01',
|
||||
]);
|
||||
app(CourseFake::class)->fetches(123, []);
|
||||
$this->withoutExceptionHandling()->login()->loginNami();
|
||||
|
|
Loading…
Reference in New Issue