From a49ed63c5ae9db59d34fa21616d955a064599c6a Mon Sep 17 00:00:00 2001 From: Nina Pypchenko <22447785+nina-py@users.noreply.github.com> Date: Sat, 26 Sep 2020 14:32:28 +1000 Subject: [PATCH] Replaced 'Piwik' with 'Matomo' in console output (#16475) --- plugins/CustomDimensions/Commands/AddCustomDimension.php | 2 +- plugins/CustomDimensions/Commands/RemoveCustomDimension.php | 2 +- .../tests/Commands/AddCustomDimensionTest.php | 4 ++-- .../tests/Commands/RemoveCustomDimensionTest.php | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/CustomDimensions/Commands/AddCustomDimension.php b/plugins/CustomDimensions/Commands/AddCustomDimension.php index b30363e5a16..44aee50ac27 100644 --- a/plugins/CustomDimensions/Commands/AddCustomDimension.php +++ b/plugins/CustomDimensions/Commands/AddCustomDimension.php @@ -66,7 +66,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $numDimensionsAvailable = $tracking->getNumInstalledIndexes(); $this->writeSuccessMessage($output, array( - sprintf('Your Piwik is now configured for up to %d Custom Dimensions in scope %s.', $numDimensionsAvailable, $scope) + sprintf('Your Matomo is now configured for up to %d Custom Dimensions in scope %s.', $numDimensionsAvailable, $scope) )); } diff --git a/plugins/CustomDimensions/Commands/RemoveCustomDimension.php b/plugins/CustomDimensions/Commands/RemoveCustomDimension.php index 30fdfe76645..e571fb8dc71 100644 --- a/plugins/CustomDimensions/Commands/RemoveCustomDimension.php +++ b/plugins/CustomDimensions/Commands/RemoveCustomDimension.php @@ -90,7 +90,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $numDimensionsAvailable = $tracking->getNumInstalledIndexes(); $this->writeSuccessMessage($output, array( - sprintf('Your Piwik is now configured for up to %d Custom Dimensions in scope %s.', $numDimensionsAvailable, $scope) + sprintf('Your Matomo is now configured for up to %d Custom Dimensions in scope %s.', $numDimensionsAvailable, $scope) )); } diff --git a/plugins/CustomDimensions/tests/Commands/AddCustomDimensionTest.php b/plugins/CustomDimensions/tests/Commands/AddCustomDimensionTest.php index b96286f0da5..20efd880598 100644 --- a/plugins/CustomDimensions/tests/Commands/AddCustomDimensionTest.php +++ b/plugins/CustomDimensions/tests/Commands/AddCustomDimensionTest.php @@ -78,7 +78,7 @@ public function testExecute_ShouldAddSpecifiedCount() self::assertStringContainsString('Adding 3 Custom Dimension(s) in scope action.', $result); self::assertStringContainsString('Are you sure you want to perform this action?', $result); self::assertStringContainsString('Starting to add Custom Dimension(s)', $result); - self::assertStringContainsString('Your Piwik is now configured for up to 8 Custom Dimensions in scope action.', $result); + self::assertStringContainsString('Your Matomo is now configured for up to 8 Custom Dimensions in scope action.', $result); $logVisit = new LogTable(CustomDimensions::SCOPE_VISIT); $this->assertSame(range(1,5), $logVisit->getInstalledIndexes()); @@ -106,7 +106,7 @@ public function testExecute_ShouldAddSpecifiedCount_IfScopeIsVisitShouldAlsoUpda self::assertStringContainsString('Adding 2 Custom Dimension(s) in scope visit.', $result); self::assertStringContainsString('Are you sure you want to perform this action?', $result); self::assertStringContainsString('Starting to add Custom Dimension(s)', $result); - self::assertStringContainsString('Your Piwik is now configured for up to 7 Custom Dimensions in scope visit.', $result); + self::assertStringContainsString('Your Matomo is now configured for up to 7 Custom Dimensions in scope visit.', $result); $logVisit = new LogTable(CustomDimensions::SCOPE_VISIT); $this->assertSame(range(1,7), $logVisit->getInstalledIndexes()); diff --git a/plugins/CustomDimensions/tests/Commands/RemoveCustomDimensionTest.php b/plugins/CustomDimensions/tests/Commands/RemoveCustomDimensionTest.php index f277fc0034a..0295381412d 100644 --- a/plugins/CustomDimensions/tests/Commands/RemoveCustomDimensionTest.php +++ b/plugins/CustomDimensions/tests/Commands/RemoveCustomDimensionTest.php @@ -86,7 +86,7 @@ public function testExecute_ShouldAddSpecifiedCount() self::assertStringContainsString('Remove Custom Dimension at index 3 in scope action.', $result); self::assertStringContainsString('Are you sure you want to perform this action?', $result); self::assertStringContainsString('Starting to remove this Custom Dimension', $result); - self::assertStringContainsString('Your Piwik is now configured for up to 4 Custom Dimensions in scope action.', $result); + self::assertStringContainsString('Your Matomo is now configured for up to 4 Custom Dimensions in scope action.', $result); $logVisit = new LogTable(CustomDimensions::SCOPE_VISIT); $this->assertSame(range(1,5), $logVisit->getInstalledIndexes()); @@ -111,7 +111,7 @@ public function testExecute_ShouldAddSpecifiedCount_IfScopeIsVisitShouldAlsoUpda self::assertStringContainsString('Remove Custom Dimension at index 2 in scope visit', $result); self::assertStringContainsString('Are you sure you want to perform this action?', $result); self::assertStringContainsString('Starting to remove this Custom Dimension', $result); - self::assertStringContainsString('Your Piwik is now configured for up to 4 Custom Dimensions in scope visit.', $result); + self::assertStringContainsString('Your Matomo is now configured for up to 4 Custom Dimensions in scope visit.', $result); $logVisit = new LogTable(CustomDimensions::SCOPE_VISIT); $this->assertSame(array(1,3,4,5), $logVisit->getInstalledIndexes());