Skip to content

Commit 52de68a

Browse files
committed
Fix PHPUnit tests
- testProcessCommitData now covers 100% of GitChangelog::processCommitData().
1 parent 94b1301 commit 52de68a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/GitChangeLogTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,15 @@ public function testProcessCommitData()
270270
$method->setAccessible(true);
271271

272272
$changeLog = new GitChangeLog();
273-
$changeLog->setLabels();
273+
$changeLog->setLabels('C', 'D');
274274

275-
$value = ['A' => ['date' => 'B', 'subjects' => ['C', 'D', 'C'], 'hashes' => ['E', 'F', 'G']]];
275+
$value = ['A' => ['date' => 'B', 'subjects' => ['C', 'D', 'C', 'E'], 'hashes' => ['F', 'G', 'H', 'I']]];
276276
$this->setPrivateProperty($changeLog, 'commitData', $value);
277277
$value = [
278278
'A' => [
279279
'date' => 'B',
280280
'subjects' => [1 => 'D', 2 => 'C'],
281-
'hashes' => [1 => ['F'], 2 => ['E', 'G']],
281+
'hashes' => [1 => ['G'], 2 => ['F', 'H']],
282282
],
283283
];
284284
$method->invokeArgs($changeLog, []);

0 commit comments

Comments
 (0)