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:
2021-02-11 18:13:38 -03:00
parent 37ebdabc20
commit c88478f7d8
2 changed files with 7 additions and 4 deletions

View File

@@ -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()