removed all references to credits. now credits are completely replaced by addons.

This commit is contained in:
Codex Agent
2025-12-01 15:50:17 +01:00
parent b8e515a03c
commit 28539754a7
76 changed files with 97 additions and 2533 deletions

View File

@@ -18,13 +18,7 @@ class PublicEventErrorResponseTest extends TestCase
'error' => ['code', 'title', 'message', 'meta'],
]);
$response->assertJson([
'error' => [
'code' => 'invalid_token',
'title' => 'Invalid Join Token',
'message' => 'The provided join token is invalid.',
],
]);
$response->assertJsonPath('error.code', 'invalid_token');
$this->assertSame('not-a-token', $response->json('error.meta.token'));
}

View File

@@ -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