mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 02:10:39 +00:00
deleted pro code
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
<?php
|
||||
namespace Tests\App\Restrictions;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Domain\Settings\Models\Setting;
|
||||
|
||||
class RestrictionsTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_get_metered_driver()
|
||||
{
|
||||
Setting::updateOrCreate([
|
||||
'name' => 'subscription_type',
|
||||
], [
|
||||
'value' => 'metered',
|
||||
]);
|
||||
|
||||
$this->assertEquals('metered', get_restriction_driver());
|
||||
}
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_get_fixed_driver()
|
||||
{
|
||||
Setting::updateOrCreate([
|
||||
'name' => 'subscription_type',
|
||||
], [
|
||||
'value' => 'fixed',
|
||||
]);
|
||||
|
||||
$this->assertEquals('fixed', get_restriction_driver());
|
||||
}
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_get_default_driver()
|
||||
{
|
||||
$subscriptionType = Setting::where('name', 'subscription_type')
|
||||
->first();
|
||||
|
||||
$subscriptionType?->delete();
|
||||
|
||||
$this->assertEquals('default', get_restriction_driver());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user