woocommerce/tests/unit-tests/util
Rodrigo Primo 13f703fd32 Don't call WC_Install::install() on downgrades
WC doesn't support downgrades but the if condition that decides whether or not to call WC_Install::install() and apply database schema changes was checking if the WC version stored in the database is equal to the WC version in the code. This commit changes the check performed inside the if condition to verify if the WC version stored in the database is smaller than the version in the code. This way `dbDelta()` won't be called automatically by WC and revert database schema changes. This is particulary important for clustered providers where the version of the WC code running in one of the containers could be outdated and trigger a database downgrade.
2018-02-05 14:40:51 -02:00
..
class-wc-tests-core-functions.php Add more core-functions unit tests (#18190) 2017-12-18 11:58:40 -02:00
class-wc-tests-wc-query.php Fix shop on homepage with unsupported themes 2018-02-01 11:15:46 +00:00
conditional-functions.php Test webhook functions 2017-08-17 12:29:34 -03:00
deprecated-hooks.php Fixed unit tests 2017-11-22 17:00:02 -02:00
install.php Don't call WC_Install::install() on downgrades 2018-02-05 14:40:51 -02:00
notice-functions.php Fix wc_notice_count logic and add test 2018-01-10 12:43:48 +00:00
plugin-updates.php Harden + fix plugin updates tests 2017-08-22 15:03:54 -07:00
validation.php PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast 2016-08-27 05:08:49 +03:00