public function testDownloadRecoveryToolDoesNothing(): void
{ $_SERVER['SW_RECOVERY_NEXT_VERSION'
] = '6.4.0.0';
$httpClient =
new MockHttpClient([]);
$client =
new ApiClient($httpClient, true, '6.4.0.0', __DIR__
);
$client->
downloadRecoveryTool();
unset($_SERVER['SW_RECOVERY_NEXT_VERSION'
]);
static::
assertSame(0,
$httpClient->
getRequestsCount());
} public function testDownloadRecoveryTool(): void
{ $responses =
[ new MockResponse('test',
['Content-Type' => 'application/json'
]),
];
$fs =
new Filesystem();
$fs->
mkdir(__DIR__ . '/public'
);