Include job download source and target files

This commit is contained in:
2021-02-12 19:02:25 -03:00
parent abda9e4ee8
commit b739763448
2 changed files with 53 additions and 0 deletions

View File

@@ -12,4 +12,22 @@ final class JobsTest extends TestCase
$this->expectException(\Exception::class);
$api->jobs()->list('invalidProjectUid', []);
}
public function testDownloadTargetFileReturnsNull()
{
$api = new Memsource('fakeToken');
$this->assertEquals(
null,
$api->jobs()->downloadTargetFile('projUid', 'jobUid', 'filename.xliff')
);
}
public function testDownloadOriginalFileReturnsNull()
{
$api = new Memsource('fakeToken');
$this->assertEquals(
null,
$api->jobs()->downloadOriginalFile('projUid', 'jobUid', 'filename.xliff')
);
}
}