woocommerce/tests/unit-tests/product
Rodrigo Primo 27915dd696 Exception when WC_Product_Variation is instantiated with the wrong type
This commits changes WC_Product_Variation to raise an exception when the
class is instantiated with an ID that belongs to a post object that is
not a product variation.

This is necessary to avoid problems like the one described in #24956
where passing a variable product ID to WC_Product_Variation would result
in transparently modifying the variable product title and excerpt.
2019-12-05 15:45:48 -03:00
..
class-wc-tests-product-download.php Add filetype checking for all files located on the server 2018-10-11 13:31:18 -07:00
data-store.php Added unit test for special case of attribute value 0. 2019-10-02 15:06:22 +02:00
data.php Add support for custom attributes to wc_placeholder_img(). 2019-10-30 15:08:19 +00:00
factory.php Fix PHPCS violations in tests/ using PHPCBF 2019-05-01 19:05:00 -03:00
functions.php Merge branch 'master' into feature/24956 2019-12-04 16:18:39 -03:00
product-simple.php Simplify WC_Product_Simple tests 2018-10-17 19:22:16 -03:00
product-variable.php Some phpcs 2017-11-22 14:03:26 -08:00
product-variation.php Exception when WC_Product_Variation is instantiated with the wrong type 2019-12-05 15:45:48 -03:00
query.php Fix Requested Changes 2018-08-24 13:03:09 +10:00