Fix proxy headers and help sync boot
This commit is contained in:
24
tests/Feature/Help/HelpSyncServiceTest.php
Normal file
24
tests/Feature/Help/HelpSyncServiceTest.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Help;
|
||||
|
||||
use App\Services\Help\HelpSyncService;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Tests\TestCase;
|
||||
|
||||
class HelpSyncServiceTest extends TestCase
|
||||
{
|
||||
public function test_help_sync_writes_compiled_articles(): void
|
||||
{
|
||||
Storage::fake('local');
|
||||
Config::set('help.disk', 'local');
|
||||
|
||||
$service = $this->app->make(HelpSyncService::class);
|
||||
$result = $service->sync();
|
||||
|
||||
$this->assertNotEmpty($result);
|
||||
Storage::disk('local')->assertExists('help/guest/en/articles.json');
|
||||
Storage::disk('local')->assertExists('help/guest/de/articles.json');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user