From 4b14cbc727094866e39dc8489e25029f4a9e2a28 Mon Sep 17 00:00:00 2001 From: Khan M Rashedun-Naby Date: Thu, 7 Jun 2018 21:25:13 +0600 Subject: [PATCH] Removed unnecessary parameter. Also removed from tests. --- includes/class-wc-privacy-exporters.php | 3 +-- tests/unit-tests/privacy/export.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/class-wc-privacy-exporters.php b/includes/class-wc-privacy-exporters.php index 608c7512539..a8fd72c6d57 100644 --- a/includes/class-wc-privacy-exporters.php +++ b/includes/class-wc-privacy-exporters.php @@ -17,10 +17,9 @@ class WC_Privacy_Exporters { * * @since 3.4.0 * @param string $email_address The user email address. - * @param int $page Page. * @return array An array of personal data in name value pairs */ - public static function customer_data_exporter( $email_address, $page ) { + public static function customer_data_exporter( $email_address ) { $user = get_user_by( 'email', $email_address ); // Check if user has an ID in the DB to load stored personal data. $data_to_export = array(); diff --git a/tests/unit-tests/privacy/export.php b/tests/unit-tests/privacy/export.php index 910a576df36..65a9a61ac1c 100644 --- a/tests/unit-tests/privacy/export.php +++ b/tests/unit-tests/privacy/export.php @@ -58,11 +58,11 @@ class WC_Test_Privacy_Export extends WC_Unit_Test_Case { */ public function test_customer_data_exporter() { // Test a non existing user. - $response = WC_Privacy_Exporters::customer_data_exporter( 'doesnotexist@test.com', 1 ); + $response = WC_Privacy_Exporters::customer_data_exporter( 'doesnotexist@test.com' ); $this->assertEquals( array(), $response['data'] ); // Do a test export and check response. - $response = WC_Privacy_Exporters::customer_data_exporter( 'test1@test.com', 1 ); + $response = WC_Privacy_Exporters::customer_data_exporter( 'test1@test.com' ); $this->assertTrue( $response['done'] ); $this->assertEquals( array(