mirror of
https://github.com/brunofontes/Memsource-API.git
synced 2025-11-17 02:30:54 -03:00
Includes file extension on bilingual download
It is important to choose the file extension, so including it on the filename would be the easier way for us, as we already have the extension when using it.
This commit is contained in:
@@ -11,14 +11,14 @@ final class BilingualFileTest extends TestCase
|
||||
$api = new Memsource('fakeToken');
|
||||
$this->assertEquals(
|
||||
[],
|
||||
$api->bilingualFile()->download('uid', [], 'filename')
|
||||
$api->bilingualFile()->download('uid', [], 'filename.xliff')
|
||||
);
|
||||
}
|
||||
public function testInvalidDownloadUidsShouldThrowError()
|
||||
{
|
||||
$api = new Memsource('fakeToken');
|
||||
$this->expectException(\Exception::class);
|
||||
$api->bilingualFile()->download('uid', ['a'], 'filename');
|
||||
$api->bilingualFile()->download('uid', ['a'], 'filename.xliff');
|
||||
}
|
||||
|
||||
public function testUploadInexistentFileShouldThrowError()
|
||||
|
||||
Reference in New Issue
Block a user