woocommerce/tests/unit-tests/account/functions.php

54 lines
1.3 KiB
PHP
Raw Normal View History

2016-01-19 23:37:39 +00:00
<?php
/**
* Class Functions.
* @package WooCommerce\Tests\Account
*/
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(
'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(
'order-number' => 'Order',
'order-date' => 'Date',
'order-status' => 'Status',
'order-total' => 'Total',
2016-01-19 23:37:39 +00:00
'order-actions' => '&nbsp;',
), 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',
'download-remaining' => 'Downloads remaining',
'download-expires' => 'Expires',
'download-product' => 'Product',
2016-01-19 23:37:39 +00:00
), wc_get_account_downloads_columns() );
}
}