Delete old setting test
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2022-09-06 00:38:07 +02:00
parent 564640b60b
commit 133cdfbd10
1 changed files with 0 additions and 43 deletions

View File

@ -1,43 +0,0 @@
<?php
namespace Tests\Feature\Settings;
use App\Setting\GeneralSettings;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class GlobalSettingTest extends TestCase
{
use DatabaseTransactions;
public function setUp(): void
{
parent::setUp();
$this->withNamiSettings();
}
public function testItLoadsGeneralSettings(): void
{
GeneralSettings::fake([
'modules' => ['bill'],
]);
$this->withoutExceptionHandling();
$this->login()->init();
$response = $this->get('/setting');
$this->assertComponent('setting/Index', $response);
$this->assertEquals(['bill'], $this->inertia($response, 'general.modules'));
}
public function testItGetsOptionsForModels(): void
{
$this->withoutExceptionHandling();
$this->login()->init();
$response = $this->get('/setting');
$this->assertContains('bill', $this->inertia($response, 'options.modules'));
}
}