@@ -303,7 +303,7 @@ protected static function generate_variable_product() {
303303 'sku ' => sanitize_title ( $ name ) . '- ' . self ::$ faker ->ean8 ,
304304 'global_unique_id ' => self ::$ faker ->randomElement ( [ self ::$ faker ->ean13 , self ::$ faker ->isbn10 ] ),
305305 'attributes ' => $ attributes ,
306- 'tax_status ' => 'taxable ' ,
306+ 'tax_status ' => self :: $ faker -> randomElement ( [ 'taxable ' , ' shipping ' , ' none ' ] ) ,
307307 'tax_class ' => '' ,
308308 'manage_stock ' => $ will_manage_stock ,
309309 'stock_quantity ' => $ will_manage_stock ? self ::$ faker ->numberBetween ( -100 , 100 ) : null ,
@@ -339,7 +339,7 @@ protected static function generate_variable_product() {
339339 'sale_price ' => $ sale_price ,
340340 'date_on_sale_from ' => '' ,
341341 'date_on_sale_to ' => self ::$ faker ->iso8601 ( date ( 'c ' , strtotime ( '+1 month ' ) ) ),
342- 'tax_status ' => 'taxable ' ,
342+ 'tax_status ' => self :: $ faker -> randomElement ( [ 'taxable ' , ' shipping ' , ' none ' ] ) ,
343343 'tax_class ' => '' ,
344344 'manage_stock ' => $ will_manage_stock ,
345345 'stock_quantity ' => $ will_manage_stock ? self ::$ faker ->numberBetween ( -20 , 100 ) : null ,
@@ -390,7 +390,7 @@ protected static function generate_simple_product() {
390390 'date_on_sale_from ' => '' ,
391391 'date_on_sale_to ' => self ::$ faker ->iso8601 ( date ( 'c ' , strtotime ( '+1 month ' ) ) ),
392392 'total_sales ' => self ::$ faker ->numberBetween ( 0 , 10000 ),
393- 'tax_status ' => 'taxable ' ,
393+ 'tax_status ' => self :: $ faker -> randomElement ( [ 'taxable ' , ' shipping ' , ' none ' ] ) ,
394394 'tax_class ' => '' ,
395395 'manage_stock ' => $ will_manage_stock ,
396396 'stock_quantity ' => $ will_manage_stock ? self ::$ faker ->numberBetween ( -100 , 100 ) : null ,
0 commit comments