diff options
Diffstat (limited to 'tests/PHPUnit/Core/Tracker/ActionTest.php')
-rw-r--r-- | tests/PHPUnit/Core/Tracker/ActionTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/PHPUnit/Core/Tracker/ActionTest.php b/tests/PHPUnit/Core/Tracker/ActionTest.php index f6cb3321de..1938780923 100644 --- a/tests/PHPUnit/Core/Tracker/ActionTest.php +++ b/tests/PHPUnit/Core/Tracker/ActionTest.php @@ -359,9 +359,10 @@ class Tracker_ActionTest extends DatabaseTestCase { $this->setUpRootAccess(); $idSite = Piwik_SitesManager_API::getInstance()->addSite("site1", array('http://example.org')); - $action = new Test_Piwik_TrackerAction_extractUrlAndActionNameFromRequest(); - $action->setRequest($request); - $action->setIdSite($idSite); + $request['idsite'] = $idSite; + $request = new Piwik_Tracker_Request($request); + $action = new Test_Piwik_TrackerAction_extractUrlAndActionNameFromRequest($request); + $this->assertEquals($action->public_extractUrlAndActionNameFromRequest(), $expected); } } |