配置 workflows

This commit is contained in:
Wisp X 2022-03-06 19:59:49 +08:00
parent af46c54b15
commit 7cd5a84f33
3 changed files with 11 additions and 3 deletions

View File

@ -16,6 +16,6 @@ class ExampleTest extends TestCase
{ {
$response = $this->get('/'); $response = $this->get('/');
$response->assertStatus(200); $response->assertStatus(302);
} }
} }

View File

@ -4,14 +4,14 @@ namespace Tests\Feature;
use App\Enums\ConfigKey; use App\Enums\ConfigKey;
use App\Utils; use App\Utils;
use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Tests\TestCase; use Tests\TestCase;
class UtilTest extends TestCase class UtilTest extends TestCase
{ {
use RefreshDatabase; use DatabaseMigrations;
public function test_config() public function test_config()
{ {

View File

@ -2,9 +2,17 @@
namespace Tests; namespace Tests;
use Database\Seeders\InstallSeeder;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase abstract class TestCase extends BaseTestCase
{ {
use CreatesApplication; use CreatesApplication;
protected function setUp(): void
{
parent::setUp();
$this->seed(InstallSeeder::class);
}
} }