50 $hash =
new Hash(
'sha1checksum',
'md5checksum',
'sha256checksum', 123123);
51 if($version==ApiVersion::V1){
54 "foldername" =>
'root',
57 "uploadname" =>
'my.tar.gz',
58 "uploaddate" =>
'01-01-2020',
60 "assigneeDate" =>
'01-01-2020',
61 "closingDate" =>
'01-01-2020',
62 "hash" => $hash->getArray()
67 "folderName" =>
'root',
70 "uploadName" =>
'my.tar.gz',
71 "uploadDate" =>
'01-01-2020',
73 "assigneeDate" =>
'01-01-2020',
74 "closingDate" =>
'01-01-2020',
75 "hash" => $hash->getArray()
79 $actualUpload =
new Upload(2,
'root', 3,
'',
'my.tar.gz',
'01-01-2020', 3,
81 $actualUpload->setAssigneeDate(
"01-01-2020");
82 $actualUpload->setClosingDate(
"01-01-2020");
84 $this->assertEquals($expectedUpload, $actualUpload->getArray($version));
Hash model holding information about file like checksums and size.
Model class to hold Upload info.