remove license checking

This commit is contained in:
wizard
2023-10-07 11:55:28 +02:00
parent 640ae2e840
commit 5ba4bf3478
148 changed files with 106374 additions and 5358 deletions

View File

@@ -53,20 +53,6 @@ class SettingsTest extends TestCase
]);
}
/**
* @test
*/
public function it_try_get_secured_settings_via_public_api()
{
Setting::create([
'name' => 'purchase_code',
'value' => '15a53561-d387-4e0a-8de1-5d1bff34c1ed',
]);
$this->getJson('/api/settings?column=purchase_code')
->assertStatus(401);
}
/**
* @test
*/

View File

@@ -10,34 +10,6 @@ use Illuminate\Support\Facades\Storage;
class SetupWizardTest extends TestCase
{
/**
* @test
*/
public function it_verify_purchase_code_successfully()
{
Http::fake([
'https://verify.vuefilemanager.com/api/verify-code/*' => Http::response([], 204),
]);
$this->postJson('/api/setup/purchase-code', [
'purchaseCode' => '8624194e-3156-4cd0-944e-3440fcecdacb',
])->assertStatus(201);
}
/**
* @test
*/
public function it_verify_purchase_code_unsuccessfully()
{
Http::fake([
'https://verify.vuefilemanager.com/api/verify-code/*' => Http::response([], 400),
]);
$this->postJson('/api/setup/purchase-code', [
'purchaseCode' => '8624194e-3156-4cd0-944e-3440fcecdacb',
])->assertStatus(400);
}
/**
* @test
*/
@@ -134,8 +106,6 @@ class SetupWizardTest extends TestCase
'password' => 'VerySecretPassword',
'password_confirmation' => 'VerySecretPassword',
'name' => 'John Doe',
'purchase_code' => '8624194e-3156-4cd0-944e-3440fcecdacb',
'license' => 'Regular',
'avatar' => UploadedFile::fake()->image('fake-logo.jpg'),
])->assertStatus(204);
@@ -168,16 +138,6 @@ class SetupWizardTest extends TestCase
'value' => '1',
]);
$this->assertDatabaseHas('settings', [
'name' => 'license',
'value' => 'regular',
]);
$this->assertDatabaseHas('settings', [
'name' => 'purchase_code',
'value' => '8624194e-3156-4cd0-944e-3440fcecdacb',
]);
$this->assertDatabaseHas('languages', [
'name' => 'English',
'locale' => 'en',
@@ -217,8 +177,6 @@ class SetupWizardTest extends TestCase
'password' => 'VerySecretPassword',
'password_confirmation' => 'VerySecretPassword',
'name' => 'John Doe',
'purchase_code' => '8624194e-3156-4cd0-944e-3440fcecdacb',
'license' => 'Regular',
])->assertStatus(410);
$this->assertDatabaseMissing('users', [

View File

@@ -38,10 +38,6 @@ abstract class TestCase extends BaseTestCase
'name' => 'storage_limitation',
'value' => 1,
],
[
'name' => 'license',
'value' => 'extended',
],
[
'name' => 'language',
'value' => 'en',