'x', 'ip' => '127.0.0.1', 'ssh_port' => 1, 'status' => 'pending']); $server->credential()->create([ 'username' => 'root', 'auth_type' => 'password', 'secret' => 'nope', ]); $server->load('credential'); $res = app(FleetService::class)->testConnection($server); $this->assertFalse($res['ok']); $this->assertNotNull($res['error']); } }