Update Amount of Orders to Number of Orders throughout

This commit is contained in:
Ron Rennick 2019-06-12 16:16:18 -03:00
parent 6f9681ff53
commit 6b02ee217c
7 changed files with 7 additions and 7 deletions

View File

@ -180,7 +180,7 @@ class WC_Admin_REST_Reports_Categories_Controller extends WC_Admin_REST_Reports_
'readonly' => true,
),
'orders_count' => array(
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,

View File

@ -162,7 +162,7 @@ class WC_Admin_REST_Reports_Coupons_Controller extends WC_REST_Reports_Controlle
'readonly' => true,
),
'orders_count' => array(
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,

View File

@ -155,7 +155,7 @@ class WC_Admin_REST_Reports_Orders_Stats_Controller extends WC_Admin_REST_Report
'format' => 'currency',
),
'orders_count' => array(
'description' => __( 'Amount of orders', 'woocommerce-admin' ),
'description' => __( 'Number of orders', 'woocommerce-admin' ),
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,

View File

@ -189,7 +189,7 @@ class WC_Admin_REST_Reports_Revenue_Stats_Controller extends WC_REST_Reports_Con
'format' => 'currency',
),
'orders_count' => array(
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,

View File

@ -202,7 +202,7 @@ class WC_Admin_REST_Reports_Taxes_Controller extends WC_REST_Reports_Controller
'readonly' => true,
),
'orders_count' => array(
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,

View File

@ -188,7 +188,7 @@ class WC_Admin_REST_Reports_Taxes_Stats_Controller extends WC_REST_Reports_Contr
'format' => 'currency',
),
'orders_count' => array(
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,

View File

@ -102,7 +102,7 @@ class WC_Tests_API_Reports_Performance_Indicators extends WC_REST_Unit_Test_Case
$this->assertEquals( 2, count( $reports ) );
$this->assertEquals( 'orders/orders_count', $reports[0]['stat'] );
$this->assertEquals( 'Amount of orders', $reports[0]['label'] );
$this->assertEquals( 'Number of orders', $reports[0]['label'] );
$this->assertEquals( 1, $reports[0]['value'] );
$this->assertEquals( 'orders_count', $reports[0]['chart'] );
$this->assertEquals( '/analytics/orders', $response->data[0]['_links']['report'][0]['href'] );