19 use \PHPUnit\Framework\TestCase;
38 $hash =
new Hash(
'sha1checksum',
'md5checksum',
'sha256checksum', 123123);
39 $upload =
new Upload(2,
'root', 3,
'',
'my.tar.gz',
'01-01-2020', 3,
41 $this->assertInstanceOf(Upload::class, $upload);
67 $hash =
new Hash(
'sha1checksum',
'md5checksum',
'sha256checksum', 123123);
68 if($version==ApiVersion::V1){
71 "foldername" =>
'root',
74 "uploadname" =>
'my.tar.gz',
75 "uploaddate" =>
'01-01-2020',
77 "assigneeDate" =>
'01-01-2020',
78 "closingDate" =>
'01-01-2020',
79 "hash" => $hash->getArray()
84 "folderName" =>
'root',
87 "uploadName" =>
'my.tar.gz',
88 "uploadDate" =>
'01-01-2020',
90 "assigneeDate" =>
'01-01-2020',
91 "closingDate" =>
'01-01-2020',
92 "hash" => $hash->getArray()
96 $actualUpload =
new Upload(2,
'root', 3,
'',
'my.tar.gz',
'01-01-2020', 3,
98 $actualUpload->setAssigneeDate(
"01-01-2020");
99 $actualUpload->setClosingDate(
"01-01-2020");
101 $this->assertEquals($expectedUpload, $actualUpload->getArray($version));
Hash model holding information about file like checksums and size.
Model class to hold Upload info.