From c313d222e2fd187da7e3deb5d74ec626d3e775d5 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 10 Apr 2021 02:03:53 +0200 Subject: [PATCH] pull region --- src/Member.php | 1 + tests/Unit/PullMemberTest.php | 1 + tests/json/member-17.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Member.php b/src/Member.php index 044ecd0..969bb01 100644 --- a/src/Member.php +++ b/src/Member.php @@ -43,6 +43,7 @@ class Member extends Model { 'lastUpdated' => 'updated_at', 'mitgliedsNummer' => 'mitgliedsnr', 'zeitschriftenversand' => 'send_newspaper', + 'regionId' => 'region_id', ]; protected $casts = []; diff --git a/tests/Unit/PullMemberTest.php b/tests/Unit/PullMemberTest.php index dece839..5055cf1 100644 --- a/tests/Unit/PullMemberTest.php +++ b/tests/Unit/PullMemberTest.php @@ -40,6 +40,7 @@ class PullMemberTest extends TestCase 'mitgliedsnr' => ['mitgliedsnr', [12345, null]], 'updated_at' => ['updated_at', ['2020-06-28 02:15:24', '2015-02-03 15:20:07']], 'send_newspaper' => ['send_newspaper', [true, false]], + 'region_id' => ['region_id', [10, 11]], ]; } diff --git a/tests/json/member-17.json b/tests/json/member-17.json index 266f1d7..459e6f5 100644 --- a/tests/json/member-17.json +++ b/tests/json/member-17.json @@ -61,7 +61,7 @@ "ort": "Köln", "ersteUntergliederungId": null, "wiederverwendenFlag": false, - "regionId": 10, + "regionId": 11, "geburtsDatum": "1984-01-17 00:00:00", "stufe": null, "genericField1": null,