Add order CTA links on packages overview
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-21 22:07:46 +01:00
parent 2f9a700e00
commit da6f95aead
4 changed files with 75 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Tests\Feature\Marketing;
use App\Models\Package;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Inertia\Testing\AssertableInertia as Assert;
use Tests\TestCase;
class PackagesPageTest extends TestCase
{
use RefreshDatabase;
public function test_packages_page_renders_available_packages(): void
{
Package::factory()->count(2)->endcustomer()->create();
Package::factory()->count(1)->reseller()->create();
$response = $this->get('/de/packages');
$response->assertOk();
$response->assertInertia(fn (Assert $page) => $page
->component('marketing/Packages')
->has('endcustomerPackages', 2)
->has('resellerPackages', 1)
);
}
}