From 774a85f935b3916daed6450e9316267e50480cb8 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 31 Jul 2024 22:50:18 +0200 Subject: [PATCH] --wip-- [skip ci] --- tests/Feature/Invoice/SettingTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Invoice/SettingTest.php b/tests/Feature/Invoice/SettingTest.php index 3e451023..87690008 100644 --- a/tests/Feature/Invoice/SettingTest.php +++ b/tests/Feature/Invoice/SettingTest.php @@ -11,6 +11,13 @@ class SettingTest extends TestCase use DatabaseTransactions; public function testSettingIndex(): void + { + $this->withoutExceptionHandling()->login()->loginNami(); + + $response = $this->get('/setting/bill')->assertInertiaComponent('setting/Bill')->assertInertia('url', route('settingapilist'); + } + + public function testItGetsSettingsFromApi(): void { $this->withoutExceptionHandling()->login()->loginNami(); InvoiceSettings::fake([ @@ -27,7 +34,7 @@ class SettingTest extends TestCase 'rememberWeeks' => 6 ]); - $response = $this->get('/setting/bill'); + $response = $this->get(route('api.settigs.list')); $response->assertOk(); $this->assertInertiaHas([