32 "uploadName" =>
'test.tar.gz',
34 "mainLicense" =>
'MIT',
35 "uniqueLicenses" => 5,
36 "totalLicenses" => 25,
37 "uniqueConcludedLicenses" => 1,
38 "totalConcludedLicenses" => 25,
39 "filesToBeCleared" => 0,
41 "clearingStatus" =>
"Closed",
42 "copyrightCount" => 10,
44 "noScannerLicenseFoundCount" => 0,
45 "scannerUniqueLicenseCount" => 0,
46 'concludedNoLicenseFoundCount' => 0
50 $actual->setUploadId(5);
51 $actual->setUploadName(
'test.tar.gz');
52 $actual->setAssignee(3);
53 $actual->setMainLicense(
'MIT');
54 $actual->setUniqueLicenses(5);
55 $actual->setTotalLicenses(25);
56 $actual->setUniqueConcludedLicenses(1);
57 $actual->setTotalConcludedLicenses(25);
58 $actual->setFilesToBeCleared(0);
59 $actual->setFilesCleared(25);
60 $actual->setClearingStatus(UploadStatus::CLOSED);
61 $actual->setCopyrightCount(10);
62 $actual->setFileCount(25);
63 $actual->setNoScannerLicenseFoundCount(0);
64 $actual->setScannerUniqueLicenseCount(0);
65 $actual->setConcludedNoLicenseFoundCount(0);
67 $this->assertEquals($expected, $actual->getArray());
79 $expectedOpen =
"Open";
80 $expectedProgress =
"InProgress";
81 $expectedClosed =
"Closed";
82 $expectedRejected =
"Rejected";
83 $expectedDefault =
"NA";
85 $this->assertEquals($expectedOpen,
87 $this->assertEquals($expectedProgress,
89 $this->assertEquals($expectedClosed,
91 $this->assertEquals($expectedRejected,
94 $this->assertEquals($expectedDefault,
Model class to hold Upload info.
static statusToString($status)
Test cases for UploadSummary model.