From eec4975a0f0442baf169a58b8fab792074157f15 Mon Sep 17 00:00:00 2001 From: Nicolas COMPAIN Date: Sun, 14 Jan 2024 13:13:13 +0100 Subject: [PATCH] Refactor MultiDownloaderClientTest class --- tests/MultiDownloaderClientTest.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/MultiDownloaderClientTest.php b/tests/MultiDownloaderClientTest.php index d975776..ce9f024 100644 --- a/tests/MultiDownloaderClientTest.php +++ b/tests/MultiDownloaderClientTest.php @@ -26,11 +26,8 @@ class MultiDownloaderClientTest extends TestCase public function testDownloadAsString() { $client = new MultiDownloaderClient(['apiKey' => 'test', 'apiSecret' => 'test']); - $client->setFiles($this->testFiles()); - $response = $client->downloadAsString(); - $md5 = md5($response); $this->assertEquals('7542c2c2a0750ab9e62d50bbe83d4c1f', $md5); @@ -39,12 +36,9 @@ class MultiDownloaderClientTest extends TestCase public function testDownloadTo() { $client = new MultiDownloaderClient(['apiKey' => 'test', 'apiSecret' => 'test']); - $path = sys_get_temp_dir() . '/testDownloadTo.zip'; - $client->setFiles($this->testFiles()); $client->downloadTo($path); - $md5 = md5_file($path); $this->assertFileExists($path); @@ -56,6 +50,7 @@ class MultiDownloaderClientTest extends TestCase $client = new MultiDownloaderClient(['apiKey' => 'test', 'apiSecret' => 'test']); $client->setFiles($this->testFiles()); - echo $client->htmlForm($this->testFiles()); + echo $client->htmlForm(); + $this->assertTrue(true); } }