diff options
author | diosmosis <benaka@piwik.pro> | 2015-09-25 11:42:20 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-09-25 11:42:20 +0300 |
commit | 844fe2dec7491fe3472f3b84a9408d79807f69b8 (patch) | |
tree | 575d2206aa39309cd44a5bc350c656e6479f0fe2 /plugins/SegmentEditor | |
parent | a0e37cb91b8c4c9b833bbe083f34a3879f260a40 (diff) |
Fix test failures.
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r-- | plugins/SegmentEditor/SegmentQueryDecorator.php | 2 | ||||
-rw-r--r-- | plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SegmentEditor/SegmentQueryDecorator.php b/plugins/SegmentEditor/SegmentQueryDecorator.php index 625b990cb9..d501f6f9b1 100644 --- a/plugins/SegmentEditor/SegmentQueryDecorator.php +++ b/plugins/SegmentEditor/SegmentQueryDecorator.php @@ -49,7 +49,7 @@ class SegmentQueryDecorator extends LogQueryBuilder } if (!empty($prefixParts)) { - $result['sql'] = "/* " . implode(', ', $prefixParts) . " */\n"; + $result['sql'] = "/* " . implode(', ', $prefixParts) . " */\n" . $result['sql']; } return $result; diff --git a/plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php b/plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php index 4c86f54fbe..6ecad82f2f 100644 --- a/plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php +++ b/plugins/SegmentEditor/tests/Unit/SegmentQueryDecoratorTest.php @@ -82,8 +82,8 @@ class SegmentQueryDecoratorTest extends \PHPUnit_Framework_TestCase private function getMockSegmentEditorService() { $mock = $this->getMock('Piwik\Plugins\SegmentEditor\Services\StoredSegmentService', - array('getSegmentsToAutoArchive'), array(), '', $callOriginalConstructor = false); - $mock->expects($this->any())->method('getSegmentsToAutoArchive')->willReturn(self::$storedSegments); + array('getAllSegmentsAndIgnoreVisibility'), array(), '', $callOriginalConstructor = false); + $mock->expects($this->any())->method('getAllSegmentsAndIgnoreVisibility')->willReturn(self::$storedSegments); return $mock; } } |