Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Mar 19, 2024
1 parent 5c664ee commit a4221df
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,14 @@ public function test_is_hpos_compatible() {
$this->assertTrue( $this->orders_autosuggest->is_hpos_compatible() );

// Turn HPOS on
$custom_orders_table = \Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION;
$custom_orders_table = \Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION;
$change_custom_orders_table = function() {
return 'yes';
};
add_filter( 'pre_option_' . $custom_orders_table, $change_custom_orders_table );

// Disable legacy mode
$legacy_mode = \Automattic\WooCommerce\Internal\DataStores\Orders\DataSynchronizer::ORDERS_DATA_SYNC_ENABLED_OPTION;
$legacy_mode = \Automattic\WooCommerce\Internal\DataStores\Orders\DataSynchronizer::ORDERS_DATA_SYNC_ENABLED_OPTION;
$change_legacy_mode = function() {
return 'no';
};
Expand Down Expand Up @@ -417,7 +417,7 @@ public function test_get_setting_help_message_feature_available() {
*/
public function test_get_setting_help_message_feature_hpos_incompatible() {
// Turn HPOS on
$custom_orders_table = \Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION;
$custom_orders_table = \Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION;
$change_custom_orders_table = function() {
return 'yes';
};
Expand Down

0 comments on commit a4221df

Please sign in to comment.