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-10-12 10:16:30 +00:00
|
|
|
'dashboard' => 'Dashboard',
|
|
|
|
'orders' => 'Orders',
|
|
|
|
'downloads' => 'Downloads',
|
|
|
|
'edit-address' => 'Addresses',
|
|
|
|
'edit-account' => 'Account details',
|
|
|
|
'customer-logout' => 'Logout',
|
2016-01-19 23:37:39 +00:00
|
|
|
), 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(
|
2016-10-12 10:16:30 +00:00
|
|
|
'order-number' => 'Order',
|
|
|
|
'order-date' => 'Date',
|
|
|
|
'order-status' => 'Status',
|
|
|
|
'order-total' => 'Total',
|
2017-04-25 13:46:17 +00:00
|
|
|
'order-actions' => 'Actions',
|
2016-01-19 23:37:39 +00:00
|
|
|
), 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(
|
2017-07-12 15:18:43 +00:00
|
|
|
'download-file' => 'Download',
|
2016-10-12 10:16:30 +00:00
|
|
|
'download-remaining' => 'Downloads remaining',
|
|
|
|
'download-expires' => 'Expires',
|
|
|
|
'download-product' => 'Product',
|
2016-01-19 23:37:39 +00:00
|
|
|
), wc_get_account_downloads_columns() );
|
|
|
|
}
|
|
|
|
}
|