add parameter file name to htmlForm() method
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user