Skip to content

Commit

Permalink
Update test for slotfill_placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
moon0326 committed Mar 8, 2024
1 parent dfcfa51 commit 438d631
Showing 1 changed file with 23 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,29 @@ public function test_get_settings__all_settings_are_present() {
$settings_ids_and_types = $this->get_ids_and_types( $settings );

$expected = array(
'woocommerce_store_address' => 'text',
'woocommerce_store_address_2' => 'text',
'woocommerce_store_city' => 'text',
'woocommerce_default_country' => 'single_select_country',
'woocommerce_store_postcode' => 'text',
'store_address' => array( 'title', 'sectionend' ),
'woocommerce_allowed_countries' => 'select',
'woocommerce_all_except_countries' => 'multi_select_countries',
'woocommerce_specific_allowed_countries' => 'multi_select_countries',
'woocommerce_ship_to_countries' => 'select',
'woocommerce_specific_ship_to_countries' => 'multi_select_countries',
'woocommerce_default_customer_address' => 'select',
'woocommerce_calc_taxes' => 'checkbox',
'woocommerce_enable_coupons' => 'checkbox',
'woocommerce_calc_discounts_sequentially' => 'checkbox',
'general_options' => array( 'title', 'sectionend' ),
'woocommerce_currency' => 'select',
'woocommerce_currency_pos' => 'select',
'woocommerce_price_thousand_sep' => 'text',
'woocommerce_price_decimal_sep' => 'text',
'woocommerce_price_num_decimals' => 'number',
'pricing_options' => array( 'title', 'sectionend' ),
'woocommerce_store_address' => 'text',
'woocommerce_store_address_2' => 'text',
'woocommerce_store_city' => 'text',
'woocommerce_default_country' => 'single_select_country',
'woocommerce_store_postcode' => 'text',
'store_address' => array( 'title', 'sectionend' ),
'woocommerce_allowed_countries' => 'select',
'woocommerce_all_except_countries' => 'multi_select_countries',
'woocommerce_specific_allowed_countries' => 'multi_select_countries',
'woocommerce_ship_to_countries' => 'select',
'woocommerce_specific_ship_to_countries' => 'multi_select_countries',
'woocommerce_default_customer_address' => 'select',
'woocommerce_calc_taxes' => 'checkbox',
'woocommerce_enable_coupons' => 'checkbox',
'woocommerce_calc_discounts_sequentially' => 'checkbox',
'general_options' => array( 'title', 'sectionend' ),
'woocommerce_currency' => 'select',
'woocommerce_currency_pos' => 'select',
'woocommerce_price_thousand_sep' => 'text',
'woocommerce_price_decimal_sep' => 'text',
'woocommerce_price_num_decimals' => 'number',
'pricing_options' => array( 'title', 'sectionend' ),
'wc_settings_general_site_visibility_slotfill' => 'slotfill_placeholder',
);

$this->assertEquals( $expected, $settings_ids_and_types );
Expand Down

0 comments on commit 438d631

Please sign in to comment.