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:
authorThomas Steur <tsteur@users.noreply.github.com>2018-11-29 05:55:22 +0300
committerGitHub <noreply@github.com>2018-11-29 05:55:22 +0300
commit1bea8652a119d9098c695bba6c15bcd7d7fbaea9 (patch)
tree205c42b5a714cca7b83e9ed5f065e18c74b35cf6 /plugins/MobileMessaging
parent039e62dd87fead33238ea93a2c4fbef1d91cab71 (diff)
When creating HTML reports in tmp/assets/ include a random string in the filename (#13607)
* When creating HTML reports in tmp/assets/ include a random string in the filename * allow saveOnDisk option only for sendReport * fix test and update changelog
Diffstat (limited to 'plugins/MobileMessaging')
-rw-r--r--plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php b/plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php
index 64a5f80435..6979857c9d 100644
--- a/plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php
+++ b/plugins/MobileMessaging/tests/Integration/MobileMessagingTest.php
@@ -61,17 +61,12 @@ class MobileMessagingTest extends IntegrationTestCase
array("phoneNumbers" => array('33698896656'))
);
- list($outputFilename, $prettyDate, $websiteName, $additionalFiles) =
- $APIScheduledReports->generateReport(
- $reportId,
- '01-01-2010',
- 'en',
- 2
- );
-
- $handle = fopen($outputFilename, "r");
- $contents = fread($handle, filesize($outputFilename));
- fclose($handle);
+ $contents = $APIScheduledReports->generateReport(
+ $reportId,
+ '01-01-2010',
+ 'en',
+ APIScheduledReports::OUTPUT_RETURN
+ );
$this->assertEquals(
\Piwik\Piwik::translate('MobileMessaging_MultiSites_Must_Be_Activated'),