mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
test groups refactoring
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\App;
|
||||
namespace Tests\Domain\Homepage;
|
||||
|
||||
use App\Http\Mail\SendContactMessage;
|
||||
use App\Models\File;
|
||||
use App\Models\Folder;
|
||||
use App\Models\Setting;
|
||||
use App\Models\Share;
|
||||
use App\Models\User;
|
||||
use App\Services\SetupService;
|
||||
use Domain\Settings\Models\File;
|
||||
use Domain\Settings\Models\Folder;
|
||||
use Domain\Settings\Models\Setting;
|
||||
use Domain\Settings\Models\Share;
|
||||
use Domain\Settings\Models\User;
|
||||
use Domain\SetupWizard\Services\SetupService;
|
||||
use Mail;
|
||||
use ScssPhp\ScssPhp\Compiler;
|
||||
use Tests\TestCase;
|
||||
@@ -144,20 +144,6 @@ class HomepageTest extends TestCase
|
||||
->assertSee('This link is protected by password');
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_get_legal_page()
|
||||
{
|
||||
$this->setup->seed_default_pages();
|
||||
|
||||
$this->getJson('/api/page/terms-of-service')
|
||||
->assertStatus(200)
|
||||
->assertJsonFragment([
|
||||
'title' => 'Terms of Service',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
@@ -178,41 +164,4 @@ class HomepageTest extends TestCase
|
||||
|
||||
Mail::assertSent(SendContactMessage::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_get_settings()
|
||||
{
|
||||
Setting::create([
|
||||
'name' => 'get_started_title',
|
||||
'value' => 'Hello World!',
|
||||
]);
|
||||
|
||||
Setting::create([
|
||||
'name' => 'pricing_description',
|
||||
'value' => 'Give me a money!',
|
||||
]);
|
||||
|
||||
$this->getJson('/api/content?column=get_started_title|pricing_description')
|
||||
->assertStatus(200)
|
||||
->assertExactJson([
|
||||
"get_started_title" => "Hello World!",
|
||||
"pricing_description" => "Give me a money!",
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @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/content?column=purchase_code')
|
||||
->assertStatus(401);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user