Skip to content
Extraits de code Groupes Projets
Valider 844fe2de rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Fix test failures.

parent a0e37cb9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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;
......
......@@ -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;
}
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter