Fixed coding standards and tests
This commit is contained in:
parent
b2233982cb
commit
8858e74c56
|
@ -27,8 +27,7 @@ class WC_Data_Store {
|
||||||
* this and doesn't exist, then the store would fall back to 'product'.
|
* this and doesn't exist, then the store would fall back to 'product'.
|
||||||
* Ran through `woocommerce_data_stores`.
|
* Ran through `woocommerce_data_stores`.
|
||||||
*/
|
*/
|
||||||
private $stores = array(
|
private $stores = array();
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains the name of the current data store's class name.
|
* Contains the name of the current data store's class name.
|
||||||
|
|
|
@ -10,7 +10,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
* @category Class
|
* @category Class
|
||||||
* @author WooThemes
|
* @author WooThemes
|
||||||
*/
|
*/
|
||||||
class WC_Data_Store_CPT {
|
class WC_Data_Store_CPT {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ class WC_Tests_Data_Store extends WC_Unit_Test_Case {
|
||||||
$this->assertEquals( 'WC_Dummy_Data_Store_CPT', $store->get_current_class_name() );
|
$this->assertEquals( 'WC_Dummy_Data_Store_CPT', $store->get_current_class_name() );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper Functions
|
/* Helper Functions. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads two dummy data store classes that can be swapt out for each other. Adds to the `woocommerce_data_stores` filter.
|
* Loads two dummy data store classes that can be swapt out for each other. Adds to the `woocommerce_data_stores` filter.
|
||||||
|
|
Loading…
Reference in New Issue