createServerModel(); $this->app->make(SendsServerPower::class)->send($server, 'restart'); $this->assertActivityOn('server:power.restart', $server); }); test('a command sent without the http api is logged on the server', function (): void { new FakeDaemonCommand; $server = $this->createServerModel(); $this->app->make(SendsServerCommands::class)->send($server, 'say hi'); expect($this->assertActivityOn('server:console.command', $server)->properties->get('command'))->toBe('say hi'); });