Andrew Wallo před 8 měsíci
rodič
revize
3d52f014ba

+ 1
- 1
app/Filament/Company/Pages/CreateCompany.php Zobrazit soubor

@@ -112,7 +112,7 @@ class CreateCompany extends FilamentCreateCompany
112 112
             $profile->address()->create([
113 113
                 'company_id' => $company->id,
114 114
                 'type' => AddressType::General,
115
-                'country' => $data['profile']['country'],
115
+                'country_code' => $data['profile']['country'],
116 116
             ]);
117 117
 
118 118
             $user?->switchCompany($company);

+ 1
- 1
tests/Feature/CompanySetupAndBehaviorTest.php Zobrazit soubor

@@ -56,7 +56,7 @@ it('returns data for the current company based on the CurrentCompanyScope', func
56 56
 it('validates that company default settings are non-null', function () {
57 57
     $testCompany = $this->testCompany;
58 58
 
59
-    expect($testCompany->profile->country)->not->toBeNull()
59
+    expect($testCompany->profile->address->country_code)->not->toBeNull()
60 60
         ->and($testCompany->profile->email)->not->toBeNull()
61 61
         ->and($testCompany->default->currency_code)->toBe('USD')
62 62
         ->and($testCompany->locale->language)->toBe('en')

Načítá se…
Zrušit
Uložit