From 2f8b71e3cf74d2aafcaabf5b16ac0d353410b95c Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 11 Feb 2022 01:56:02 +0100 Subject: [PATCH] Update kontoverbindung --- packages/laravel-nami | 2 +- tests/Feature/Member/UpdateTest.php | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/laravel-nami b/packages/laravel-nami index b833537f..1f03a84e 160000 --- a/packages/laravel-nami +++ b/packages/laravel-nami @@ -1 +1 @@ -Subproject commit b833537f32835adb881d873a924b56d63c61d327 +Subproject commit 1f03a84eff994dbd0f9339a557830699ba454af5 diff --git a/tests/Feature/Member/UpdateTest.php b/tests/Feature/Member/UpdateTest.php index 1bdf6016..ce58889d 100644 --- a/tests/Feature/Member/UpdateTest.php +++ b/tests/Feature/Member/UpdateTest.php @@ -13,6 +13,7 @@ use App\Nationality; use App\Payment\Subscription; use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Support\Facades\Http; +use Illuminate\Support\Str; use Tests\TestCase; use Zoomyboy\LaravelNami\Backend\FakeBackend; @@ -60,7 +61,9 @@ class UpdateTest extends TestCase ->patch("/member/{$member->id}", array_merge($member->getAttributes(), ['has_nami' => true, 'firstname' => '::firstname::'])); Http::assertSent(fn ($request) => $request->method() === 'PUT' - && $request['missingkey'] === 'missingvalue' && $request['vorname'] === '::firstname::' + && $request['kontoverbindung'] === '{"a":"b"}' + && $request['missingkey'] === 'missingvalue' + && $request['vorname'] === '::firstname::' ); } @@ -92,7 +95,7 @@ class UpdateTest extends TestCase { Http::fake(function ($request) { if ($request->url() === app(FakeBackend::class)->singleMemberUrl(10, 135) && $request->method() === 'GET') { - return Http::response('{ "success": true, "data": {"missingkey": "missingvalue"} }', 200); + return Http::response('{ "success": true, "data": {"missingkey": "missingvalue", "kontoverbindung": {"a": "b"} } }', 200); } if ($request->url() === app(FakeBackend::class)->singleMemberUrl(10, 135) && $request->method() === 'PUT') {