Commit Graph

47359 Commits

Author SHA1 Message Date
Lourens Schep 4a76505fdf Add comment for woocommerce-reset plugin addition 2022-03-24 14:11:18 -03:00
Lourens Schep d032c5d603 Skip deletion of the wp mail logging plugin as it is required for testing 2022-03-24 14:08:03 -03:00
Lourens Schep cb6e15523b Add prepare command to project.json 2022-03-24 14:08:03 -03:00
Lourens Schep 20c0c85f9c Fix admin-e2e-test dependency and add new purchase task E2E test, also added the WooCommerce reset plugin 2022-03-24 14:08:03 -03:00
Barry Hughes 9056be919d
Merge pull request #32332 from woocommerce/fix/32329
Don't change quotes when replacing text domain.
2022-03-24 09:23:54 -07:00
Nestor Soriano 913c6bddb2
Add more "#[\ReturnTypeWillChange]" attributes.
These are needed for the code to be compatible with both PHP 7.x and 8.x
2022-03-24 14:08:18 +01:00
Nestor Soriano fbc77160db
Use CssInliner class instead of Emogrifier class
With the upgrade of the Emogrifier package we can't use the Emogrifier
class, since it was removed in v4 (we need to use at least v5 for
compatibility with PHP 8); so we now use the CssInliner class.

Note that this is a potential breaking change for consumers of the
woocommerce_emogrifier hook, which was getting an Emogrifier object
as parameter (now it gets a CssInliner object, which is partially
compatible).
2022-03-24 14:08:18 +01:00
Nestor Soriano 0f2b717462
Fix calls to deprecated PHPUnit methods in unit tests.
Fix tests where PHPUnit 8 would throw "this method is deprecated
and will be removed in PHPUnit 9, use this other one instead"
warnings, by replacing all those with the proper ones. This will help
once we are able to use PHP 8 (once WP requirement is bumped to 5.9)
2022-03-24 14:08:18 +01:00
Nestor Soriano 5837a53821
Add .phpunit.result.cache to .gitignore
This file is created by PHPUnit v8 when tests run.
2022-03-24 14:08:18 +01:00
Nestor Soriano 01073ec24f
Add return type setUp and tearDown methods in unit tests
After the bump to PHP 7.2 all the setUp and tearDown methods
in unit test classes need to have an explicit "void" return type
declaration.
2022-03-24 14:08:17 +01:00
Nestor Soriano 819494f2ed
Bump WooCommerce minimum required PHP version to 7.2
This includes:

- Changing "Requires PHP" in woocommerce.php
- Changing "require-php" and "config-platform-php" in composer.json
- Bumping pelago/emogrifier to ^6.0 in composer.json
- Bumping maxmind-db/reader to ^1.6 in composer.json
- Bumping composer/installers to ^1.9 in composer.json
  (bump to 2.0 not possible due to conflict with Admin package)
- Removing jobs for 7.0/.1 unit test runs in CI
- Explicitly specifying the PHPUnit version to be 7.5,
  otherwise it will install v8 which isn't compatible with
  WordPress <5.9
2022-03-24 14:08:11 +01:00
louwie17 9aaf1b373b
Merge pull request #32341 from woocommerce/fix/ci-yaml
Add "Build Admin feature config" step to "Run CI" action
2022-03-24 09:59:27 -03:00
Peter Fabian 8cd3a86aaa
Merge pull request #31539 from nagpai/fix/30209
Fix columns in checkout page for TwentyTwenty theme
2022-03-24 10:57:22 +01:00
Chi-Hsuan Huang 096759862f Update woo admin node version to ^16 2022-03-24 16:33:53 +08:00
rodelgc 15fbc0be9a
Removed faker dependency (#32069)
* Removed faker dependency
2022-03-24 15:30:40 +08:00
Chi-Hsuan Huang a720ccb42a Add "Build Admin feature config" step to ci.yml 2022-03-24 14:00:43 +08:00
louwie17 eb081aa9fa
Merge pull request #32320 from woocommerce/add/32161_reminder_bar
Add reminder bar for task list experiment
2022-03-23 17:12:05 -03:00
Lourens Schep 44d9824d47 Fix error when tasks are not defined yet 2022-03-23 14:05:25 -03:00
Lourens Schep 371ce71173 Update completed tasks variable 2022-03-23 13:57:48 -03:00
Josh Betz 8446625b0d
Merge pull request #32073 from woocommerce/reviews-api/add-product-info
Added product name + permalink to the GET Reviews API endpoint response
2022-03-23 11:06:22 -05:00
Tomek Wytrębowicz f7580b98a4 Define CurrencyConfig type, export declarations
Redo afa01e3342
2022-03-23 15:50:14 +01:00
Peter Fabian f2b534c687 WC Admin is no longer a package 2022-03-23 15:45:21 +01:00
Tomek Wytrębowicz fcf529b87c Remove unrelated Google Search link form README
Redo 1c4c8b4c15
2022-03-23 15:42:22 +01:00
Seghir Nadir 180178044a
Update WooCommerce Blocks package to 7.2.1
This pull updates the WooCommerce Blocks plugin to 7.2.1. It is intended to target WooCommerce 6.4 for release. This supercedes https://github.com/woocommerce/woocommerce/pull/32075.

Details from all the different releases included in this pull:

## Blocks 7.2.1
[Release PR](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6072)
[Testing Instruction](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/docs/testing/releases/721.md)

### Changelog entry

#### The following changelog entries are only those that impact existing blocks and functionality surfaced to users:

#### Bug fixes

- Don't trigger class deprecations notices if headers are already sent [#6074](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6074)

### Changelog entry
> Dev - Update WooCommerce Blocks version to 7.2.1
2022-03-23 15:02:45 +01:00
Peter Fabian d7642c7ae7 Don't change quotes when replacing text domain. 2022-03-23 13:50:37 +01:00
Fernando Marichal f276434ea4 Disable welcome modals 2022-03-23 09:11:34 -03:00
anitaamurthy 7603a2c02b Fixed spacing issue 2022-03-23 17:11:09 +05:30
Chi-Hsuan Huang e3d035a624
Merge pull request #32291 from woocommerce/add/32138-ability-for-code-based-notes-to-update
Add ability for code-based notes to update
2022-03-23 17:08:15 +08:00
RJ 04d94d0430
Merge pull request #32327 from woocommerce/dev/publish-wca-packages
Corrected path for publishing commands
2022-03-23 16:07:19 +08:00
rjchow 2d8214af2e Corrected path for publishing commands
- typo in the path in previous commit
2022-03-23 13:30:11 +08:00
Chi-Hsuan Huang 9d7879b254
Merge pull request #32290 from woocommerce/add/primary-arg-back-to-add-action
Add `$primary` param back to add_action method
2022-03-23 11:22:52 +08:00
RJ fc163b6dc9
Merge pull request #32313 from woocommerce/dev/publish-wca-packages
Bump WCA JS packages version numbers in package.json and changelogs
2022-03-23 11:18:04 +08:00
Tomek Wytrębowicz b03b1184ac Fix returned type of `numberFormat`.
`locutus/php/strings/number_format` seems to always return a `String`.

Redo baa0c5d2b4.
2022-03-22 20:56:07 +01:00
Tomek Wytrębowicz 0b959cfc70 Update `formatValue` docs, explain "based on type",
Fix the returned value's type.

Redo 5d7d53f01a.
2022-03-22 20:55:03 +01:00
Tomek Wytrębowicz 6013099e7f Define NumberConfig data type, export type declarations.
Redo 8cdc828b37.
2022-03-22 20:52:30 +01:00
roykho d346630747
Make sure the reply is from issue author before triggering 2022-03-22 08:53:16 -07:00
Tomek Wytrębowicz a67188b52e Fix argument forwarding for npm script lint:js-fix.
Redo 7d1a6661f9.
2022-03-22 16:36:17 +01:00
Tomek Wytrębowicz 4714289838 Fix `packages/` path for npm script `lint:js`. 2022-03-22 16:35:12 +01:00
Lourens Schep fdbc2190c0 Update changelog 2022-03-22 12:32:32 -03:00
Lourens Schep 25d6b6d528 Add reminder bar for task list experiment 2022-03-22 12:28:58 -03:00
louwie17 b27618e51d
Merge pull request #32304 from woocommerce/fix/add_feature_config_to_gitignore
Remove feature config from repo and add it to the gitignore
2022-03-22 08:56:38 -03:00
Chi-Hsuan Huang c9e9465802 Update indent 2022-03-22 16:13:22 +08:00
Chi-Hsuan Huang b7cee3e867 Add tests for update_note_field_if_changed method 2022-03-22 16:09:01 +08:00
rjchow 43f81cbf69 Bumped WCA JS package version numbers 2022-03-22 16:08:24 +08:00
rjchow 3c0cc02104 Updated WCA package publishing commands
- Updated path for packages
2022-03-22 16:07:36 +08:00
Chi-Hsuan Huang 5b294e4c11 Use in_array to check need_save logic 2022-03-22 15:29:30 +08:00
Chi-Hsuan Huang da241f6c70
Merge pull request #32293 from woocommerce/fix/admin-js-tests
Fix WooCommerce Admin JS unit tests
2022-03-22 14:11:08 +08:00
rjchow 6d797267f4 Updated wp-env mysql credentials in development documentation 2022-03-22 13:56:50 +08:00
Chi-Hsuan Huang 1fcdc5b6a2 Update wc admin test command 2022-03-22 11:24:59 +08:00
Chi-Hsuan Huang 0530ee122c Fix explat assignment-test.js for node >= 16 2022-03-22 11:24:59 +08:00