From ccd999643ad268ac56efdb38b59be53d76d0a846 Mon Sep 17 00:00:00 2001 From: mohanmd Date: Wed, 24 Jun 2026 13:03:31 +0530 Subject: [PATCH] sponsor profile api updated --- tests/Feature/SponsorAuthApiTest.php | 60 ++++++++++++++-------------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/tests/Feature/SponsorAuthApiTest.php b/tests/Feature/SponsorAuthApiTest.php index 28fc0bb..bc88625 100644 --- a/tests/Feature/SponsorAuthApiTest.php +++ b/tests/Feature/SponsorAuthApiTest.php @@ -703,33 +703,35 @@ public function test_sponsor_can_update_profile_and_syncs_with_matching_user() 'address' => 'New Address', 'nationality' => 'Jordanian', 'country_code' => '+962', - 'id_number' => '784-2000-1234567-1', - 'card_number' => '987654321', - 'full_name' => 'Updated Sponsor Name', - 'date_of_birth' => '2000-01-01', - 'gender' => 'Male', - 'issue_date' => '2023-01-01', - 'expiry_date' => '2028-01-01', - 'occupation' => 'Business Owner', - 'employer' => 'Self', - 'issuing_place' => 'Abu Dhabi', - 'document_type' => 'dubai_commercial_license', - 'country' => 'United Arab Emirates', - 'authority' => 'Dubai Economy and Tourism', - 'license_no' => '828302', - 'company_name' => 'MSJ INTERNATIONAL TECHNICAL SERVICES L.L.C', - 'business_name' => 'MSJ INTERNATIONAL TECHNICAL SERVICES L.L.C', - 'license_category' => 'Dep. of Economic Development', - 'legal_type' => 'Limited Liability Company Single Owner(LLC- - SO)', - 'main_license_no' => '828302', - 'register_no' => '1656486', - 'dcci_no' => '317412', - 'members' => [ - [ - 'person_no' => '752967', - 'name' => 'Lo lo wallus issued in', - 'nationality' => 'India', - 'role' => 'Shares Owner Who' + 'emirates_id' => [ + 'emirates_id_number' => '784-2000-1234567-1', + 'name' => 'Updated Sponsor Name', + 'date_of_birth' => '2000-01-01', + 'expiry_date' => '2028-01-01', + 'issue_date' => '2023-01-01', + 'occupation' => 'Business Owner', + 'employer' => 'Self', + 'issue_place' => 'Abu Dhabi', + ], + 'license' => [ + 'document_type' => 'dubai_commercial_license', + 'country' => 'United Arab Emirates', + 'authority' => 'Dubai Economy and Tourism', + 'license_no' => '828302', + 'company_name' => 'MSJ INTERNATIONAL TECHNICAL SERVICES L.L.C', + 'business_name' => 'MSJ INTERNATIONAL TECHNICAL SERVICES L.L.C', + 'license_category' => 'Dep. of Economic Development', + 'legal_type' => 'Limited Liability Company Single Owner(LLC- - SO)', + 'main_license_no' => '828302', + 'register_no' => '1656486', + 'dcci_no' => '317412', + 'members' => [ + [ + 'person_no' => '752967', + 'name' => 'Lo lo wallus issued in', + 'nationality' => 'India', + 'role' => 'Shares Owner Who' + ] ] ] ]); @@ -762,10 +764,8 @@ public function test_sponsor_can_update_profile_and_syncs_with_matching_user() 'email' => 'new-sync-test@example.com', 'mobile' => '+971500000002', 'emirates_id' => '784-2000-1234567-1', - 'emirates_id_card_number' => '987654321', 'emirates_id_name' => 'Updated Sponsor Name', 'emirates_id_dob' => '2000-01-01', - 'emirates_id_gender' => 'Male', 'emirates_id_issue_date' => '2023-01-01', 'emirates_id_expiry' => '2028-01-01', 'emirates_id_occupation' => 'Business Owner', @@ -790,10 +790,8 @@ public function test_sponsor_can_update_profile_and_syncs_with_matching_user() 'address' => 'New Address', 'phone' => '+971500000002', 'emirates_id_number' => '784-2000-1234567-1', - 'emirates_id_card_number' => '987654321', 'emirates_id_name' => 'Updated Sponsor Name', 'emirates_id_dob' => '2000-01-01', - 'emirates_id_gender' => 'Male', 'emirates_id_issue_date' => '2023-01-01', 'emirates_id_expiry' => '2028-01-01', 'emirates_id_occupation' => 'Business Owner',