diff options
author | diosmosis <benaka@piwik.pro> | 2015-09-24 02:14:16 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-09-24 02:14:16 +0300 |
commit | d108a3229b8d50baf0310e0686d0d0ff453e851b (patch) | |
tree | 709620ae9b81f03993453489e3853c6d76d70931 /plugins/SegmentEditor/tests/Unit | |
parent | 055481dcacd6dd106c3aba9a9cec49124e771e02 (diff) |
Use correct base type in test mock.
Diffstat (limited to 'plugins/SegmentEditor/tests/Unit')
-rw-r--r-- | plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php | 4 |
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; } |