2024-01-18 11:13:05 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests;
|
|
|
|
|
|
|
|
use App\Facades\License;
|
2024-01-26 11:06:57 +00:00
|
|
|
use Tests\Fakes\FakePlusLicenseService;
|
2024-01-18 11:13:05 +00:00
|
|
|
use Tests\TestCase as BaseTestCase;
|
|
|
|
|
|
|
|
class PlusTestCase extends BaseTestCase
|
|
|
|
{
|
2024-01-26 11:06:57 +00:00
|
|
|
public static function enablePlusLicense(): void
|
|
|
|
{
|
|
|
|
License::swap(app(FakePlusLicenseService::class));
|
|
|
|
}
|
|
|
|
|
2024-01-18 11:13:05 +00:00
|
|
|
public function setUp(): void
|
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
|
2024-01-26 11:06:57 +00:00
|
|
|
self::enablePlusLicense();
|
2024-01-18 11:13:05 +00:00
|
|
|
}
|
|
|
|
}
|