diff options
Diffstat (limited to 'plugins/CoreHome/tests/Integration/Tracker/VisitRequestProcessorTest.php')
-rw-r--r-- | plugins/CoreHome/tests/Integration/Tracker/VisitRequestProcessorTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/CoreHome/tests/Integration/Tracker/VisitRequestProcessorTest.php b/plugins/CoreHome/tests/Integration/Tracker/VisitRequestProcessorTest.php index 02ae4c6d99..965317a5e4 100644 --- a/plugins/CoreHome/tests/Integration/Tracker/VisitRequestProcessorTest.php +++ b/plugins/CoreHome/tests/Integration/Tracker/VisitRequestProcessorTest.php @@ -110,7 +110,9 @@ class VisitRequestProcessorTest extends IntegrationTestCase { $dimensions = array(); foreach ($dimensionOnNewVisitResults as $onNewVisitResult) { - $dim = $this->getMock('Piwik\\Plugin\\Dimension', array('shouldForceNewVisit', 'getColumnName')); + $dim = $this->getMockBuilder('Piwik\\Plugin\\Dimension') + ->setMethods(array('shouldForceNewVisit', 'getColumnName')) + ->getMock(); $dim->expects($this->any())->method('shouldForceNewVisit')->will($this->returnValue($onNewVisitResult)); $dimensions[] = $dim; } |