woocommerce/tests/legacy/unit-tests
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
..
account Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
admin Change in the logic of is_visible_core for variable products 2020-07-28 09:01:52 +02:00
attributes Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
cart Change in the logic of is_visible_core for variable products 2020-07-28 09:01:52 +02:00
checkout Revert "Revert "Introduce a `reserved stock` class and database table to prevent race conditions during checkout"" 2020-06-05 15:18:01 +05:30
core add template cache unit test 2020-06-22 16:05:29 -03:00
countries Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
coupon Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
crud Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
customer Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
discounts Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
email Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
exporter Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
formatting Fixed unit tests for #26462 2020-07-01 18:13:29 -03:00
gateways Add login_as_role and login_as_administrator to WC_Unit_Test_Case. 2020-07-14 11:42:21 +02:00
geolocation Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
importer Improvements on the code hacker. 2020-05-20 09:56:26 +02:00
integrations Improvements on the code hacker. 2020-05-20 09:56:26 +02:00
libraries Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
log Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
order Fixed unit tests for #26462 2020-07-01 18:13:29 -03:00
order-items Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
packages Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
page-functions Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
payment-gateways Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
payment-tokens Add login_as_role and login_as_administrator to WC_Unit_Test_Case. 2020-07-14 11:42:21 +02:00
privacy Merge branch 'privacy-exporter-group-description' of git://github.com/garretthyder/woocommerce into garretthyder-privacy-exporter-group-description 2020-05-12 09:40:17 -07:00
product Change in the logic of is_visible_core for variable products 2020-07-28 09:01:52 +02:00
queue Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
session Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
settings Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
setup Add login_as_role and login_as_administrator to WC_Unit_Test_Case. 2020-07-14 11:42:21 +02:00
shipping Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
shortcodes Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
tax Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
templates Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
totals Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00
util Fix: WC_Query()::adjust_posts_count failing when posts list is null. 2020-07-28 08:55:55 +02:00
webhooks Queue all webhooks on shutdown. 2020-07-27 12:11:40 -04:00
widgets Moved PHPUnit suite into tests/legacy 2020-04-24 13:53:40 -07:00