added a help system, replaced the words "tenant" and "Pwa" with better alternatives. corrected and implemented cron jobs. prepared going live on a coolify-powered system.
This commit is contained in:
23
tests/Feature/Console/HelpSyncCommandTest.php
Normal file
23
tests/Feature/Console/HelpSyncCommandTest.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Console;
|
||||
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Tests\TestCase;
|
||||
|
||||
class HelpSyncCommandTest extends TestCase
|
||||
{
|
||||
public function test_it_builds_help_cache(): void
|
||||
{
|
||||
Storage::fake('local');
|
||||
|
||||
$this->artisan('help:sync')->assertExitCode(0);
|
||||
|
||||
Storage::disk('local')->assertExists('help/guest/en/articles.json');
|
||||
|
||||
$payload = json_decode(Storage::disk('local')->get('help/guest/en/articles.json'), true);
|
||||
|
||||
$this->assertNotEmpty($payload);
|
||||
$this->assertContains('getting-started', array_column($payload, 'slug'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user