diff --git a/tests/PHPUnit/Integration/CsvExportTest.php b/tests/PHPUnit/Integration/CsvExportTest.php index a5a9dfd475f9de90bd0376d1df93927472ae1b3e..cfc3a39bfbdca77fc825155f5db44c26792fd80d 100755 --- a/tests/PHPUnit/Integration/CsvExportTest.php +++ b/tests/PHPUnit/Integration/CsvExportTest.php @@ -45,13 +45,15 @@ class Test_Piwik_Integration_CsvExport extends IntegrationTestCase 'language' => 'de', 'testSuffix' => '_xp1_inner1_trans-de')), - // TODO: we cannot currently test the csv output of Live.getLastVisitsDetails. The API method includes - // random output. Normally we remove this when it's in XML output, but it's harder to do that w/ - // CSV output. For now, we use compareOutput => false to just check that no errors result. - array('Live.getLastVisitsDetails', array('idSite' => $idSite, - 'date' => $dateTime, - 'format' => 'csv', - 'compareOutput' => false)) + array('Live.getLastVisitsDetails', array('idSite' => $idSite, + 'date' => $dateTime, + 'format' => 'csv', + 'otherRequestParameters' => array( + 'hideColumns' => 'serverDate,actionDetails,serverTimestamp,serverTimePretty,' + . 'serverDatePretty,serverDatePrettyFirstAction,serverTimePrettyFirstAction,' + . 'goalTimePretty,serverTimePretty,visitorId,visitServerHour,date,' + . 'prettyDate,serverDateTimePrettyFirstAction' + ))) ); } diff --git a/tests/PHPUnit/Integration/expected/test_csvExport__Live.getLastVisitsDetails_day.csv b/tests/PHPUnit/Integration/expected/test_csvExport__Live.getLastVisitsDetails_day.csv new file mode 100644 index 0000000000000000000000000000000000000000..acd2ac66fb2c9c2354d7de3ca008a683e83b14de Binary files /dev/null and b/tests/PHPUnit/Integration/expected/test_csvExport__Live.getLastVisitsDetails_day.csv differ