Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-09-24 02:14:16 +0300
committerdiosmosis <benaka@piwik.pro>2015-09-24 02:14:16 +0300
commitd108a3229b8d50baf0310e0686d0d0ff453e851b (patch)
tree709620ae9b81f03993453489e3853c6d76d70931 /plugins/SegmentEditor/tests/Unit
parent055481dcacd6dd106c3aba9a9cec49124e771e02 (diff)
Use correct base type in test mock.
Diffstat (limited to 'plugins/SegmentEditor/tests/Unit')
-rw-r--r--plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php b/plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php
index 9fe85b6701..7984a11220 100644
--- a/plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php
+++ b/plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php
@@ -79,8 +79,8 @@ class SegmentQueryDecoratorTest extends \PHPUnit_Framework_TestCase
private function getMockSegmentEditorApi()
{
- $mock = $this->getMock('Piwik\Plugins\SegmentEditor\API', array('getSegmentsToAutoArchive'), array(), '',
- $callOriginalConstructor = false);
+ $mock = $this->getMock('Piwik\Plugins\SegmentEditor\Services\StoredSegmentService',
+ array('getSegmentsToAutoArchive'), array(), '', $callOriginalConstructor = false);
$mock->expects($this->any())->method('getSegmentsToAutoArchive')->willReturn(self::$storedSegments);
return $mock;
}