woocommerce/tests/legacy/unit-tests/product
Nestor Soriano 29843b9396 Change in the logic of is_visible_core for variable products
Now, if there are filters present the logic is as follows:

- For multiple filtering values of the same attribute:
  the product is visible if there's at least one variation
  that has one of the filtering values associated to the attribute,
  or if there's at least one variation having the attribute
  with a value of "Any".

- For filtering by more than one attribute:
  the product is visible if there's at least one variation that
  is visible for ALL the attributes according to the above rule.

Note that this is irrespective of the type of logic configured for
the filter (OR or AND).
2020-07-28 09:01:52 +02:00
..
class-wc-tests-product-download.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
class-wc-tests-product.php Fix code sniffer errors in class-wc-tests-product.php 2020-06-29 15:20:49 +02:00
data-store.php Change in the logic of is_visible_core for variable products 2020-07-28 09:01:52 +02:00
data.php Fixed unit tests for #26462 2020-07-01 18:13:29 -03:00
factory.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
functions.php Change in the logic of is_visible_core for variable products 2020-07-28 09:01:52 +02:00
product-simple.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
product-variable.php Change in the logic of is_visible_core for variable products 2020-07-28 09:01:52 +02:00
product-variation.php Record attribute terms for product variations in wp_term_relationships. 2020-07-28 08:55:55 +02:00
query.php Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00