koel/tests/PlusTestCase.php

23 lines
403 B
PHP
Raw Normal View History

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