Skip to content

Commit

Permalink
Fix PHPUnit tests
Browse files Browse the repository at this point in the history
- testProcessCommitData now covers 100% of GitChangelog::processCommitData().
  • Loading branch information
DigiLive committed Oct 22, 2020
1 parent 94b1301 commit 52de68a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/GitChangeLogTest.php
Expand Up @@ -270,15 +270,15 @@ public function testProcessCommitData()
$method->setAccessible(true);

$changeLog = new GitChangeLog();
$changeLog->setLabels();
$changeLog->setLabels('C', 'D');

$value = ['A' => ['date' => 'B', 'subjects' => ['C', 'D', 'C'], 'hashes' => ['E', 'F', 'G']]];
$value = ['A' => ['date' => 'B', 'subjects' => ['C', 'D', 'C', 'E'], 'hashes' => ['F', 'G', 'H', 'I']]];
$this->setPrivateProperty($changeLog, 'commitData', $value);
$value = [
'A' => [
'date' => 'B',
'subjects' => [1 => 'D', 2 => 'C'],
'hashes' => [1 => ['F'], 2 => ['E', 'G']],
'hashes' => [1 => ['G'], 2 => ['F', 'H']],
],
];
$method->invokeArgs($changeLog, []);
Expand Down

0 comments on commit 52de68a

Please sign in to comment.