Permalink
Browse files

Fixed risky test in PiwikVariableCollectorTest

  • Loading branch information...
1 parent affb1b0 commit 32a12d60c838d2e58111712e4f57aaa8e7abecf7 @JeroenDeDauw JeroenDeDauw committed Feb 15, 2017
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/Unit/Infrastructure/PiwikVariableCollectorTest.php
@@ -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 ) {

0 comments on commit 32a12d6

Please sign in to comment.