feat: tg/ws
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user