Skip to content

Commit

Permalink
Fix last two failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed May 14, 2014
1 parent 23c6586 commit 6e2a002
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/PHPUnit/Integration/Core/ArchiveProcessingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function compareTimestamps($expected, $processed)
{
// $messageIfFails = Date::factory($expected)->getDatetime() . " != " . Date::factory($processed)->getDatetime();
$messageIfFails = "Expected [$expected] but got [$processed]";
$this->assertTrue( abs($expected-$processed) <=2 , $messageIfFails);
$this->assertTrue( abs($expected-$processed) <=4 , $messageIfFails);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/PHPUnit/Integration/Core/PiwikTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public function testJavascriptTrackingCode_withAllOptions()
var _paq = _paq || [];
_paq.push([\"setDocumentTitle\", document.domain + \"/\" + document.title]);
// you can set up to 5 custom variables for each visitor
_paq.push([\"setCustomVariable\", 0, \"name\", \"value\", \"visit\"]);
_paq.push([\"setCustomVariable\", 1, \"name 2\", \"value 2\", \"visit\"]);
_paq.push([\"setCustomVariable\", 1, \"name\", \"value\", \"visit\"]);
_paq.push([\"setCustomVariable\", 2, \"name 2\", \"value 2\", \"visit\"]);
// you can set up to 5 custom variables for each action (page view, download, click, site search)
_paq.push([\"setCustomVariable\", 0, \"page cvar\", \"page cvar value\", \"page\"]);
_paq.push([\"setCustomVariable\", 1, \"page cvar\", \"page cvar value\", \"page\"]);
_paq.push([\"setCampaignNameKey\", \"campaignKey\"]);
_paq.push([\"setCampaignKeywordKey\", \"keywordKey\"]);
_paq.push([\"setDoNotTrack\", true]);
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPUnit/UI
Submodule UI updated from aeeec6 to c7039d

0 comments on commit 6e2a002

Please sign in to comment.