add parameter file name to htmlForm() method
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-28 11:25:10 +00:00
parent 0862eee2b5
commit 24e3d9aa50
6 changed files with 36 additions and 8 deletions

View File

@@ -49,8 +49,16 @@ class MultiDownloaderClientTest extends TestCase
{
$client = new MultiDownloaderClient(['apiKey' => 'test', 'apiSecret' => 'test']);
$client->setFiles($this->testFiles());
echo $client->htmlForm();
// echo $client->htmlForm();
$this->assertTrue(true);
}
public function testFormDlZipNameSpecified()
{
$client = new MultiDownloaderClient(['apiKey' => 'test', 'apiSecret' => 'test']);
$client->setFiles($this->testFiles());
$output = $client->htmlForm("test123");
$this->assertStringContainsString('action="https://multi-dl.kub.nwb.fr/v2/form/zip/test123.zip"', $output);
}
}