feat: tg/ws

This commit is contained in:
hashbro
2026-08-31 02:45:24 +08:00
parent 9176af86dd
commit 337bf45c79
47 changed files with 1725 additions and 598 deletions
+3
View File
@@ -131,6 +131,8 @@ class DeviceDeleteTest extends TestCase
);
Storage::disk('local')->put('c2/ds-results/dev-del-1/cmd/a.json', '{}');
Storage::disk('local')->put('c2/ds-chunks/dev-del-1/cmd/f/0', 'x');
$waPath = PluginSession::whatsappFilePath('dev-del-1', '15550001111');
Storage::disk('local')->put($waPath, '{"userId":"15550001111"}');
try {
$this->actingAs($admin, 'admin')
@@ -157,6 +159,7 @@ class DeviceDeleteTest extends TestCase
Storage::disk('local')->assertMissing($checkPath);
Storage::disk('local')->assertMissing('c2/ds-results/dev-del-1/cmd/a.json');
Storage::disk('local')->assertMissing('c2/ds-chunks/dev-del-1/cmd/f/0');
Storage::disk('local')->assertMissing($waPath);
$this->assertFileExists($dsLog);
$left = (string) file_get_contents($dsLog);
$this->assertStringNotContainsString('dev-del-1', $left);