SEO additions
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
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\PurchaseProvisioner;
|
||||
use Modules\Paddle\Services\PurchaseProvisioner;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
@@ -84,7 +84,7 @@ class PaddleSubscriptionProvisioningTest extends TestCase
|
||||
$this->product('pri_personal_monthly', 'Personal', 1);
|
||||
app(PurchaseProvisioner::class)->provision('paddle', $this->subscription(
|
||||
'subscription.updated', 'active', 'pri_personal_monthly', 'pro_personal',
|
||||
['data' => ['scheduled_change' => ['action' => 'cancel', 'effective_at' => '2026-10-09T00:00:00Z']]]
|
||||
['scheduled_change' => ['action' => 'cancel', 'effective_at' => '2026-10-09T00:00:00Z']]
|
||||
));
|
||||
|
||||
$license = License::firstOrFail();
|
||||
@@ -97,7 +97,7 @@ class PaddleSubscriptionProvisioningTest extends TestCase
|
||||
$this->product('pri_personal_monthly', 'Personal', 1);
|
||||
$service = app(PurchaseProvisioner::class);
|
||||
$service->provision('paddle', $this->subscription('subscription.created', 'active', 'pri_personal_monthly', 'pro_personal'));
|
||||
$service->provision('paddle', $this->subscription('subscription.canceled', 'canceled', 'pri_personal_monthly', 'pro_personal', ['data' => ['current_billing_period' => null]]));
|
||||
$service->provision('paddle', $this->subscription('subscription.canceled', 'canceled', 'pri_personal_monthly', 'pro_personal', ['current_billing_period' => null]));
|
||||
|
||||
$license = License::firstOrFail();
|
||||
$this->assertNotNull($license->revoked_at);
|
||||
|
||||
Reference in New Issue
Block a user