Pascal Birchler
e0386c5f0f
Update phpstan config
2025-07-03 14:25:55 +02:00
Pascal Birchler
0ef0b14ea6
Use wp-cli-tests v5
2025-07-03 14:25:38 +02:00
Pascal Birchler
b0fafd74aa
More fixes
2025-06-11 12:38:14 +02:00
Pascal Birchler
a8053d6fec
Merge branch 'add/phpstan' of https://github.com/wp-cli/extension-command into add/phpstan
2025-06-11 11:22:35 +02:00
Pascal Birchler
153657023f
use latest and greatest
2025-06-11 11:22:18 +02:00
Pascal Birchler
1c11924d3f
More consistent signaturs & type hints
2025-06-11 11:22:13 +02:00
Pascal Birchler
f7d3b4c190
Apply suggestions from code review
...
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
2025-06-11 11:15:11 +02:00
Pascal Birchler
1975695dd1
Scan main file too
2025-05-19 10:33:01 +02:00
Pascal Birchler
983c23cefb
PHPStan level 9
2025-05-18 10:47:55 +02:00
Pascal Birchler
c125c84cb5
Merge pull request #450 from wp-cli/add/bump-requirements
...
Require PHP 7.2.24+
2025-05-12 20:34:12 +02:00
isla w
c82082b095
Merge pull request #451 from wp-cli/fix-undefined
...
Handle case where paid plugin update is put into no_update array
2025-05-07 12:11:22 -04:00
Isla Waters
6e32ddcf4a
Handle case where paid plugin update is put into no_update array
...
To avoid warning:
PHP Notice: Undefined property: stdClass::$requires in
/usr/local/etc/wp-cli/packages/vendor/wp-cli/extension-command/src/Plugin_Command.php
on line 875
2025-05-07 11:22:01 -04:00
Pascal Birchler
19c4d4d0ad
Require PHP 7.2.24+
2025-05-07 13:34:39 +02:00
Pascal Birchler
d21a2f504a
Merge pull request #445 from itsmekopila/fix/429
2025-05-06 21:17:53 +02:00
Pascal Birchler
f9f516a7c2
Fix gherkin lint
2025-05-06 20:55:59 +02:00
Pascal Birchler
71406b9932
Add test
2025-05-06 20:52:16 +02:00
Pascal Birchler
4e156bcbf1
Merge branch 'main' into fix/429
2025-05-06 20:39:05 +02:00
Alain Schlesser
110989e618
Merge pull request #385 from pfefferle/fix/363
2025-05-05 22:10:45 +02:00
Alain Schlesser
d27b3b5b93
Improve tests to ensure caching works as expected
2025-05-05 21:03:20 +02:00
Pascal Birchler
19d26ccf13
Use different plugin version
2025-04-30 22:49:23 +02:00
Pascal Birchler
429515b614
Force empty cache
2025-04-30 21:45:31 +02:00
Pascal Birchler
925e4cfc18
Fix formatting
2025-04-30 19:10:59 +02:00
Pascal Birchler
da9ee193f3
Update regexes, add Behat tests
2025-04-30 18:50:30 +02:00
Pascal Birchler
23779dee10
Revert phpunit additions
2025-04-30 18:00:59 +02:00
Pascal Birchler
51482846ed
Handle 404 from GitHub API
2025-04-30 16:51:17 +02:00
Pascal Birchler
6d50f4dbd3
Cache zipball URLs as well
2025-04-30 16:14:20 +02:00
Pascal Birchler
5103460fce
Merge branch 'main' into fix/363
2025-04-30 15:57:57 +02:00
Pascal Birchler
b4765a55bb
Update PHPUnit config
2025-04-30 15:55:27 +02:00
Pascal Birchler
4f8012f9a7
Update .gitignore
2025-04-30 15:55:08 +02:00
Pascal Birchler
da44390368
Merge pull request #449 from wp-cli/refine-feature-files
2025-04-18 21:18:36 +02:00
Nilambar Sharma
476439f70c
Fix Gherkin lint issues
2025-04-18 16:34:23 +05:45
Kopila Shrestha
029340707a
Update condition to check only is_array
2025-03-31 15:33:10 +05:45
Kopila Shrestha
31a6294b58
Fix fatal error issue in in_array function
2025-03-31 15:33:10 +05:45
Pascal Birchler
131bb09943
Merge pull request #446 from wp-cli/default-force-check
...
Don't use transient values when doing wp plugin|theme list
2025-03-20 12:50:35 +01:00
Isla Waters
456a1efb5f
Don't use transient values when doing wp plugin|theme list
...
This changes the default behavior to always check wordpress.org for the
latest information when doing wp plugin|theme list unless the existing
`--skip-update-check` flag is passed.
2025-03-19 14:20:21 -04:00
isla w
c2dafbfbf2
Merge pull request #443 from wp-cli/fix/tests
...
Fix failing tests
2025-03-19 14:10:13 -04:00
Isla Waters
84221bdc06
More updates to work on WordPress 4.9
...
Almost all of these have the same cause -- WordPress ships with Akismet
but the recent versions do not work on WordPress 4.9 so commands like wp
plugin list now show the updates as unavailable and with two additional
table headers for requires and requires_php that explain why. So just be
intentional about the fields we care about testing.
2025-03-19 13:50:44 -04:00
Pascal Birchler
dfc3e75962
Align pipes
2025-03-11 12:35:54 +01:00
Pascal Birchler
3c05504167
Bump WP requirement for 1 test
2025-03-11 12:35:54 +01:00
Pascal Birchler
1eb501fc3d
Improve transient cleanup on uninstall
2025-03-10 13:13:46 +01:00
Pascal Birchler
a674b40e94
Fix some tests on WP 4.9
2025-03-10 11:32:10 +01:00
Pascal Birchler
33afe4f868
Merge pull request #442 from wp-cli/regenerate-readme
...
Regenerate README file
2025-02-18 23:33:07 +01:00
Alain Schlesser
768d03ce7f
Regenerate README file - 2025-02-18
2025-02-18 22:27:54 +00:00
Pascal Birchler
ae4105cb50
Merge pull request #440 from wp-cli/wp-php-requirements
...
Support requires and requires_php in plugin/theme list and update command
2025-02-18 23:27:03 +01:00
Isla Waters
47b062e92e
Revert use of twentyten
...
WordPress Trunk actually includes all of these past default themes so
the output is different. Put behind a version guard instead
2025-02-18 16:17:47 -05:00
Isla Waters
38409d0a22
More changes for PHP 5.6 / WP 3.7 tests to skip or pass
2025-02-18 15:48:47 -05:00
Isla Waters
36ec8f651f
Update test to work across any WordPress version
...
This is going to have different results across different versions of
WordPress now, because output depends on the upstream requirements of
what we are testing. Update test so that the update status is variable
and we specify the fields otherwise it would sometimes show additional
fields explaining the reason an update is unavailable
2025-02-14 13:13:54 -05:00
Isla Waters
1f9609ccf1
use --force
...
Older versions of WordPress already have this installed (!) We want to
force this older version since we know there will be updates.
2025-02-14 12:57:59 -05:00
Isla Waters
130dcd69ae
Use twentythirteen for this test
...
Astra requires at least WordPress 5.3 so this test no longer applies
since we flag the update as unavailable. Switch to twentythirteen which
has lower WP requriements and is better to use for testing old versions
2025-02-14 12:47:55 -05:00
Isla Waters
351a2ecd8d
Require wp 4.0 for plugins update test
...
The plugins update-check api doesn't actually work with older versions
of WordPress, for two reasons:
The first is that the no_updates field wasn't added til 4.0 The second
is that the request that WP itself makes to the plugins update API is
missing &all=true which causes the API to always return an empty
response in my testing.
Both of these were added in 4.0 here:
b00097b758
2025-02-14 12:47:55 -05:00