Skip to content

Commit

Permalink
Adding test case + minor test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Sep 10, 2013
1 parent a80d800 commit 2c79c31
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 116 deletions.
2 changes: 1 addition & 1 deletion core/Tracker.php
Expand Up @@ -218,7 +218,7 @@ private function initBulkTrackingRequests($rawData)
public function main($args = null)
{
$tokenAuth = $this->initRequests($args);

$isAuthenticated = false;
if (!empty($this->requests)) {
foreach ($this->requests as $params) {
$request = new Request($params, $tokenAuth);
Expand Down
15 changes: 15 additions & 0 deletions tests/PHPUnit/Integration/RowEvolutionTest.php
Expand Up @@ -163,6 +163,21 @@ public function getApiForTesting()
'label' => 'Firefox,Chrome,Opera'
)
));

// test Row Evolution on Desktop VS Mobile, special "view" report
$return[] = array('API.getRowEvolution', array(
'testSuffix' => '_mobileDesktop',
'periods' => 'day',
'idSite' => $idSite2,
'date' => $today,
'otherRequestParameters' => array(
'date' => '2010-03-01,2010-03-06',
'period' => 'month',
'apiModule' => 'UserSettings',
'apiAction' => 'getMobileVsDesktop',
'label' => 'Desktop,Mobile'
)
));

// test multi row evolution w/ filter_limit to limit all available labels
$return[] = array('API.getRowEvolution', array(
Expand Down
Expand Up @@ -26,7 +26,7 @@ <h2 id="Actions_getPageTitles" style="color: rgb(126,115,99); font-size: 11pt;">


<br/>
<a style="text-decoration:none; color: rgb(126,115,99); font-size: 9pt" href="#reportTop">
<a style="text-decoration:none; color: rgb(126,115,99); font-size: 9pt;" href="#reportTop">
Back to top
</a>
</body>
Expand Down

0 comments on commit 2c79c31

Please sign in to comment.