--wip-- [skip ci]
This commit is contained in:
parent
6d204b948e
commit
774a85f935
|
@ -11,6 +11,13 @@ class SettingTest extends TestCase
|
||||||
use DatabaseTransactions;
|
use DatabaseTransactions;
|
||||||
|
|
||||||
public function testSettingIndex(): void
|
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();
|
$this->withoutExceptionHandling()->login()->loginNami();
|
||||||
InvoiceSettings::fake([
|
InvoiceSettings::fake([
|
||||||
|
@ -27,7 +34,7 @@ class SettingTest extends TestCase
|
||||||
'rememberWeeks' => 6
|
'rememberWeeks' => 6
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$response = $this->get('/setting/bill');
|
$response = $this->get(route('api.settigs.list'));
|
||||||
|
|
||||||
$response->assertOk();
|
$response->assertOk();
|
||||||
$this->assertInertiaHas([
|
$this->assertInertiaHas([
|
||||||
|
|
Loading…
Reference in New Issue