mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-07 03:16:46 +08:00
✨ 配置 workflows
This commit is contained in:
parent
af46c54b15
commit
7cd5a84f33
@ -16,6 +16,6 @@ class ExampleTest extends TestCase
|
||||
{
|
||||
$response = $this->get('/');
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertStatus(302);
|
||||
}
|
||||
}
|
||||
|
@ -4,14 +4,14 @@ namespace Tests\Feature;
|
||||
|
||||
use App\Enums\ConfigKey;
|
||||
use App\Utils;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Tests\TestCase;
|
||||
|
||||
class UtilTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
use DatabaseMigrations;
|
||||
|
||||
public function test_config()
|
||||
{
|
||||
|
@ -2,9 +2,17 @@
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Database\Seeders\InstallSeeder;
|
||||
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
||||
|
||||
abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
use CreatesApplication;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->seed(InstallSeeder::class);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user