diff --git a/src/Membership.php b/src/Membership.php index a74420c..9d296ed 100644 --- a/src/Membership.php +++ b/src/Membership.php @@ -14,7 +14,9 @@ class Membership extends Model { 'taetigkeitId' => 'activity_id', 'untergliederungId' => 'subactivity_id', 'aktivVon' => 'starts_at', - 'aktivBis' => 'ends_at' + 'aktivBis' => 'ends_at', + 'taetigkeit' => 'activity_name', + 'untergliederung' => 'subactivity_name' ]; protected $casts = []; diff --git a/tests/Unit/PullMembershipsTest.php b/tests/Unit/PullMembershipsTest.php index a502bfd..d0bd15f 100644 --- a/tests/Unit/PullMembershipsTest.php +++ b/tests/Unit/PullMembershipsTest.php @@ -19,7 +19,9 @@ class PullMembershipsTest extends TestCase 'activity_id' => ['activity_id', [33, 34]], 'subactivity_id' => ['subactivity_id', [55, 56]], 'starts_at' => ['starts_at', ['2017-02-11', '2017-11-12']], - 'ends_at' => ['ends_at', ['2017-03-11', null]] + 'ends_at' => ['ends_at', ['2017-03-11', null]], + 'activity_name' => ['activity_name', ['ReferentIn', 'Wö']], + 'subactivity_name' => ['subactivity_name', ['Pfadfinder', 'AAA']], ]; } diff --git a/tests/json/membership-68.json b/tests/json/membership-68.json index 0602bb3..c252ae2 100644 --- a/tests/json/membership-68.json +++ b/tests/json/membership-68.json @@ -4,7 +4,7 @@ "id": 68, "gruppierung": "Diözesanleitung Köln 100000", "gruppierungId": 103, - "taetigkeit": "€ ReferentIn", + "taetigkeit": "ReferentIn", "taetigkeitId": 33, "untergliederung": "Pfadfinder", "untergliederungId": 55, diff --git a/tests/json/membership-69.json b/tests/json/membership-69.json index 97495e1..93e7ef6 100644 --- a/tests/json/membership-69.json +++ b/tests/json/membership-69.json @@ -4,9 +4,9 @@ "id": 69, "gruppierung": "Diözesanleitung Köln 100000", "gruppierungId": 104, - "taetigkeit": "€ ReferentIn", + "taetigkeit": "Wö", "taetigkeitId": 34, - "untergliederung": "Pfadfinder", + "untergliederung": "AAA", "untergliederungId": 56, "aktivVon": "2017-11-12 00:00:00", "aktivBis": ""