Update Amount of Orders to Number of Orders throughout
This commit is contained in:
parent
6f9681ff53
commit
6b02ee217c
|
@ -180,7 +180,7 @@ class WC_Admin_REST_Reports_Categories_Controller extends WC_Admin_REST_Reports_
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
),
|
),
|
||||||
'orders_count' => array(
|
'orders_count' => array(
|
||||||
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
|
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
|
|
|
@ -162,7 +162,7 @@ class WC_Admin_REST_Reports_Coupons_Controller extends WC_REST_Reports_Controlle
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
),
|
),
|
||||||
'orders_count' => array(
|
'orders_count' => array(
|
||||||
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
|
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
|
|
|
@ -155,7 +155,7 @@ class WC_Admin_REST_Reports_Orders_Stats_Controller extends WC_Admin_REST_Report
|
||||||
'format' => 'currency',
|
'format' => 'currency',
|
||||||
),
|
),
|
||||||
'orders_count' => array(
|
'orders_count' => array(
|
||||||
'description' => __( 'Amount of orders', 'woocommerce-admin' ),
|
'description' => __( 'Number of orders', 'woocommerce-admin' ),
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
|
|
|
@ -189,7 +189,7 @@ class WC_Admin_REST_Reports_Revenue_Stats_Controller extends WC_REST_Reports_Con
|
||||||
'format' => 'currency',
|
'format' => 'currency',
|
||||||
),
|
),
|
||||||
'orders_count' => array(
|
'orders_count' => array(
|
||||||
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
|
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
|
|
|
@ -202,7 +202,7 @@ class WC_Admin_REST_Reports_Taxes_Controller extends WC_REST_Reports_Controller
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
),
|
),
|
||||||
'orders_count' => array(
|
'orders_count' => array(
|
||||||
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
|
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
|
|
|
@ -188,7 +188,7 @@ class WC_Admin_REST_Reports_Taxes_Stats_Controller extends WC_REST_Reports_Contr
|
||||||
'format' => 'currency',
|
'format' => 'currency',
|
||||||
),
|
),
|
||||||
'orders_count' => array(
|
'orders_count' => array(
|
||||||
'description' => __( 'Amount of orders.', 'woocommerce-admin' ),
|
'description' => __( 'Number of orders.', 'woocommerce-admin' ),
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit' ),
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
|
|
|
@ -102,7 +102,7 @@ class WC_Tests_API_Reports_Performance_Indicators extends WC_REST_Unit_Test_Case
|
||||||
$this->assertEquals( 2, count( $reports ) );
|
$this->assertEquals( 2, count( $reports ) );
|
||||||
|
|
||||||
$this->assertEquals( 'orders/orders_count', $reports[0]['stat'] );
|
$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( 1, $reports[0]['value'] );
|
||||||
$this->assertEquals( 'orders_count', $reports[0]['chart'] );
|
$this->assertEquals( 'orders_count', $reports[0]['chart'] );
|
||||||
$this->assertEquals( '/analytics/orders', $response->data[0]['_links']['report'][0]['href'] );
|
$this->assertEquals( '/analytics/orders', $response->data[0]['_links']['report'][0]['href'] );
|
||||||
|
|
Loading…
Reference in New Issue