Skip to content

Commit

Permalink
Merge pull request #831 from wmde/PiwikVariableCollectorTest
Browse files Browse the repository at this point in the history
Fixed risky test in PiwikVariableCollectorTest
  • Loading branch information
KaiNissen committed Feb 15, 2017
2 parents e0814ae + 32a12d6 commit 76d31e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Unit/Infrastructure/PiwikVariableCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ public function sessionAndDonationDataProvider() {
];
}

private function assertCustomTrackingContainsEvents( $expectedEvents, $actualEvents ) {
private function assertCustomTrackingContainsEvents( array $expectedEvents, array $actualEvents ) {
foreach ( $expectedEvents as $event ) {
$this->assertContains( $event, $actualEvents );
}

$this->assertCount( count( $expectedEvents ), $actualEvents );
}

private function newDonationMock( string $amount, string $paymentType, int $paymentInterval ) {
Expand Down

0 comments on commit 76d31e4

Please sign in to comment.