2016-01-19 23:37:39 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class Functions.
|
|
|
|
* @package WooCommerce\Tests\Account
|
|
|
|
*/
|
2016-03-23 12:14:13 +00:00
|
|
|
class WC_Tests_Account_Functions extends WC_Unit_Test_Case {
|
2016-01-19 23:37:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Test wc_get_account_menu_items().
|
|
|
|
*
|
|
|
|
* @since 2.6.0
|
|
|
|
*/
|
|
|
|
public function test_wc_get_account_menu_items() {
|
|
|
|
$this->assertEquals( array(
|
2016-01-20 20:26:12 +00:00
|
|
|
'dashboard' => __( 'Dashboard', 'woocommerce' ),
|
2016-01-19 23:37:39 +00:00
|
|
|
'orders' => __( 'Orders', 'woocommerce' ),
|
|
|
|
'edit-address' => __( 'Addresses', 'woocommerce' ),
|
|
|
|
'edit-account' => __( 'Account Details', 'woocommerce' ),
|
|
|
|
'customer-logout' => __( 'Logout', 'woocommerce' ),
|
|
|
|
), wc_get_account_menu_items() );
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test wc_get_account_orders_columns().
|
|
|
|
*
|
|
|
|
* @since 2.6.0
|
|
|
|
*/
|
|
|
|
public function test_wc_get_account_orders_columns() {
|
|
|
|
$this->assertEquals( array(
|
|
|
|
'order-number' => __( 'Order', 'woocommerce' ),
|
|
|
|
'order-date' => __( 'Date', 'woocommerce' ),
|
|
|
|
'order-status' => __( 'Status', 'woocommerce' ),
|
|
|
|
'order-total' => __( 'Total', 'woocommerce' ),
|
|
|
|
'order-actions' => ' ',
|
|
|
|
), wc_get_account_orders_columns() );
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test wc_get_account_downloads_columns().
|
|
|
|
*
|
|
|
|
* @since 2.6.0
|
|
|
|
*/
|
|
|
|
public function test_wc_get_account_downloads_columns() {
|
|
|
|
$this->assertEquals( array(
|
|
|
|
'download-file' => __( 'File', 'woocommerce' ),
|
|
|
|
'download-remaining' => __( 'Remaining', 'woocommerce' ),
|
|
|
|
'download-expires' => __( 'Expires', 'woocommerce' ),
|
|
|
|
'download-actions' => ' ',
|
|
|
|
), wc_get_account_downloads_columns() );
|
|
|
|
}
|
|
|
|
}
|