15 use PHPUnit\Framework\TestCase;
30 "clearingEventId" => 3,
31 "text" =>
"BulkHistory text",
34 "addedLicenses" => [],
35 "removedLicenses" => []
37 $obj =
new BulkHistory(4, 3,
"BulkHistory text",
false,
false, [], []);
39 'expectedArray' => $expectedArray,
53 $this->assertEquals($expectedArray, $bulkHistory->getArray());
65 $bulkHistory = $info[
'obj'];
67 $bulkHistory->setBulkId($bulkId);
68 $this->assertEquals($bulkId, $bulkHistory->getBulkId());
80 $bulkHistory = $info[
'obj'];
82 $bulkHistory->setClearingEventId($clearingEventId);
83 $this->assertEquals($clearingEventId, $bulkHistory->getClearingEventId());
95 $bulkHistory = $info[
'obj'];
96 $text =
"Updated text";
97 $bulkHistory->setText($text);
98 $this->assertEquals($text, $bulkHistory->getText());
110 $bulkHistory = $info[
'obj'];
112 $bulkHistory->setMatched($matched);
113 $this->assertEquals($matched, $bulkHistory->getMatched());
125 $bulkHistory = $info[
'obj'];
127 $bulkHistory->setTried($tried);
128 $this->assertEquals($tried, $bulkHistory->getTried());
140 $bulkHistory = $info[
'obj'];
141 $addedLicenses = [
'LicenseA',
'LicenseB'];
142 $bulkHistory->setAddedLicenses($addedLicenses);
143 $this->assertEquals($addedLicenses, $bulkHistory->getAddedLicenses());
155 $bulkHistory = $info[
'obj'];
156 $removedLicenses = [
'LicenseX',
'LicenseY'];
157 $bulkHistory->setRemovedLicenses($removedLicenses);
158 $this->assertEquals($removedLicenses, $bulkHistory->getRemovedLicenses());
testSetAndGetAddedLicenses()
testSetAndGetClearingEventId()
testSetAndGetRemovedLicenses()