From b736d2b6b26a831d605b1ad5a9518ef99743e59e Mon Sep 17 00:00:00 2001 From: Sunil Pawar Date: Wed, 11 Jul 2018 16:15:30 +0530 Subject: [PATCH] Test case for report --- tests/phpunit/api/v3/ReportTemplateTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/phpunit/api/v3/ReportTemplateTest.php b/tests/phpunit/api/v3/ReportTemplateTest.php index 91dec1b956..1f4ff7e1fc 100644 --- a/tests/phpunit/api/v3/ReportTemplateTest.php +++ b/tests/phpunit/api/v3/ReportTemplateTest.php @@ -211,6 +211,19 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { */ } + /** + * Test getrows on Mailing Opened report. + */ + public function testReportTemplateGetRowsMailingUniqueOpened() { + $description = "Retrieve rows from a mailing opened report template."; + $result = $this->callAPIAndDocument('report_template', 'getrows', array( + 'report_id' => 'Mailing/opened', + 'options' => array('metadata' => array('labels', 'title')), + ), __FUNCTION__, __FILE__, $description, 'Getrows'); + + $this->assertEquals(4, $result['count']); + } + /** * Test api to get rows from reports. * -- 2.25.1