site updates

This commit is contained in:
Mark Gregory
2026-10-06 08:47:30 +01:00
parent f9c697619a
commit 211115c9bc
154 changed files with 2560 additions and 280 deletions
@@ -2,11 +2,12 @@
namespace Tests\Feature;
use App\Models\License;
use App\Models\LicenseProduct;
use Modules\Licensing\Models\License;
use Modules\Licensing\Models\LicenseProduct;
use App\Models\User;
use App\Services\Payments\PaddleClient;
use Modules\Paddle\Services\PaddleClient;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery;
use Mockery\MockInterface;
use Tests\TestCase;
@@ -31,8 +32,10 @@ class PortalSubscriptionManagementTest extends TestCase
public function test_personal_subscription_is_upgraded_in_place(): void
{
config()->set('sonardesk.paddle.personal_monthly_price_id', 'pri_personal_monthly');
config()->set('sonardesk.paddle.professional_monthly_price_id', 'pri_professional_monthly');
$this->withoutMiddleware(PreventRequestForgery::class);
config()->set('paddle.personal_monthly_price_id', 'pri_personal_monthly');
config()->set('paddle.professional_monthly_price_id', 'pri_professional_monthly');
$personal = $this->product('personal-monthly', 'Personal', 'pri_personal_monthly', 1);
$professional = $this->product('professional-monthly', 'Professional', 'pri_professional_monthly', 3);