removed all references to credits. now credits are completely replaced by addons.
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Tests\Feature\Api;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
use Tests\TestCase;
|
||||
|
||||
@@ -15,8 +15,24 @@ class HelpControllerTest extends TestCase
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
Storage::fake('local');
|
||||
$this->artisan('help:sync');
|
||||
|
||||
Cache::put('help.guest.en', collect([
|
||||
[
|
||||
'slug' => 'getting-started',
|
||||
'title' => 'Getting Started',
|
||||
'summary' => 'Welcome guide',
|
||||
'body_html' => '<p>When to read this</p>',
|
||||
],
|
||||
]), now()->addMinutes(30));
|
||||
|
||||
Cache::put('help.admin.en', collect([
|
||||
[
|
||||
'slug' => 'tenant-dashboard-overview',
|
||||
'title' => 'Dashboard Overview',
|
||||
'summary' => 'Overview for admins',
|
||||
'body_html' => '<p>Admin guide</p>',
|
||||
],
|
||||
]), now()->addMinutes(30));
|
||||
}
|
||||
|
||||
public function test_guest_help_listing_is_public(): void
|
||||
|
||||
Reference in New Issue
Block a user