Fixed coding standards and tests

This commit is contained in:
Claudio Sanches 2016-11-08 18:27:21 -02:00
parent b2233982cb
commit 8858e74c56
3 changed files with 3 additions and 5 deletions

View File

@ -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.

View File

@ -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 {
} }

View File

@ -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.