refactor: kb & station & terminal
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Filament\Resources\TerminalResource;
|
||||
use App\Models\Station;
|
||||
use App\Models\Terminal;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
@@ -26,11 +27,13 @@ class TerminalPromptFormTest extends TestCase
|
||||
{
|
||||
$this->actingAs($this->user);
|
||||
|
||||
$station = Station::factory()->create();
|
||||
|
||||
$terminalData = [
|
||||
'name' => '测试终端',
|
||||
'code' => 'TEST-001',
|
||||
'ip_address' => '192.168.1.100',
|
||||
'station_id' => 1,
|
||||
'station_id' => $station->id,
|
||||
'prompt' => [
|
||||
'prompt_template' => '你是一个智能助手,当前用户是 {user}。',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user