Skip to content

Commit

Permalink
Merge branch '2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jul 26, 2018
2 parents 7075a87 + 4fc1ee6 commit 97270a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Report/CwpStatsReportTest.php
Expand Up @@ -42,11 +42,11 @@ public function testCount()
$report = CwpStatsReport::create();
$records = $report->sourceRecords([])->toArray();
$i = 0;
$this->assertEquals($records[$i++]['Count'], 4, 'Four pages in total, across locales, subsites, live only.');
$this->assertEquals(4, $records[$i++]['Count'], 'Four pages in total, across locales, subsites, live only.');
if (class_exists(Subsite::class)) {
$this->assertEquals($records[$i++]['Count'], 3, 'Three pages in the main site, if subsites installed.');
$this->assertEquals($records[$i++]['Count'], 1, 'One page in the subsite, if subsites installed');
$this->assertEquals(3, $records[$i++]['Count'], 'Three pages in the main site, if subsites installed.');
$this->assertEquals(1, $records[$i++]['Count'], 'One page in the subsite, if subsites installed');
}
$this->assertEquals($records[$i++]['Count'], 1, 'One file in total.');
$this->assertEquals(1, $records[$i++]['Count'], 'One file in total.');
}
}

0 comments on commit 97270a2

Please sign in to comment.