Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer committed Jul 22, 2019
1 parent ba7f05a commit b062597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/MatomoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ public function testInvalidUrl()
*/
public function testOptionalParameters()
{
$this->_matomo->setDate('2018-10-01');
$this->_matomo->setDate('2019-07-01');
$this->_matomo->setPeriod(Matomo::PERIOD_WEEK);
$result = $this->_matomo->getWebsites('', [
'flat' => 1,
]);

$this->assertIsArray($result);
$this->assertEquals(934, $result[0]->nb_visits);
$this->assertEquals(717, $result[0]->nb_visits);
}

/**
Expand All @@ -225,7 +225,7 @@ public function testOptionalParameters()
*/
public function testCustomVariables()
{
$this->_matomo->setDate('2018-10-01');
$this->_matomo->setDate('2019-07-01');
$this->_matomo->setPeriod(Matomo::PERIOD_WEEK);
$result = $this->_matomo->getCustomVariables();

Expand Down

0 comments on commit b062597

Please sign in to comment.