woocommerce/tests/legacy
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
..
data Add unit test and a sample Woo plugin file 2020-05-01 22:47:08 +05:30
framework Change in the logic of is_visible_core for variable products 2020-07-28 09:01:52 +02:00
includes Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
unit-tests Change in the logic of is_visible_core for variable products 2020-07-28 09:01:52 +02:00
bootstrap.php Moved autoloading of `Automattic\WooCommerce\Testing\Tools` namespace into test bootstrap 2020-07-24 09:25:09 +02:00
classes-with-mockable-static-methods.php Code hacker resdesign for single-load of code files. 2020-06-02 19:06:53 +02:00
mockable-functions.php Code hacker resdesign for single-load of code files. 2020-06-02 19:06:53 +02:00