mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Export and Import vito settings (#606)
* Export and Import vito settings * fix tests
This commit is contained in:
19
tests/Feature/VitoSettingsTest.php
Normal file
19
tests/Feature/VitoSettingsTest.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class VitoSettingsTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_export_settings(): void
|
||||
{
|
||||
$this->actingAs($this->user);
|
||||
|
||||
$this->get(route('vito-settings.export'))
|
||||
->assertDownload('vito-backup-'.date('Y-m-d').'.zip');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user