bobbingwide / wordpress-develop-tests

WordPress develop tests
https://develop.wp-a2z.org/oik-plugins/wordpress-develop-tests/
GNU General Public License v2.0
9 stars 4 forks source link

Update to WordPress 5.3 #8

Closed bobbingwide closed 4 years ago

bobbingwide commented 4 years ago

Requirements

Considerations

bobbingwide commented 4 years ago

Note: The tests, which are in phpunit\tests folder, see phpunit.xml.dist don't actually run. They're not updated to work with PHPUnit 8.

C:\apache\htdocs\wordpress\wp-content\plugins\wordpress-develop-tests>pu
c:\apache\htdocs\phpLibraries\phpunit\phpunit-8.4.1.phar
#!/usr/bin/env php
Searching for wp-config.php in directories leading to: C:\apache\htdocs\wordpress\wp-content\plugins\wordpress-develop-tests
Found wp-config.php in: C:\apache\htdocs\wordpress/
oik-wp running WordPress 5.3
C:\apache\htdocs\wordpress\wp-content\plugins\wordpress-develop-tests
cli
Using wordpress-develop-tests plugin

Fatal error: Declaration of Test_WP_Community_Events::setUp() must be compatible with WP_UnitTestCase::setUp(): void in C:\apache\htdocs\wordpress\wp-content\plugins\wordpress-develop-tests\phpunit\tests\admin\includesCommunityEvents.php on line 526

The code that's needed for In Situ PHPUnit testing using the wordpress-develop-tests plugin does work. I should update my documentation: https://herbmiller.me/run-phpunit-tests-wordpress-plugins-situ/

bobbingwide commented 4 years ago
  • [x] Decide which plugins and themes to be included in develop.wp-a2z.org Just the wordpress-develop-tests plugin

  • [x] Consider where wp-a2z.com should be parked wp-a2z.com is now parked on core.wp-a2z.org. Requests to wp-a2z.com get redirected to https://wp-a2z.org/sitemap/sites/ as this is the behaviour defined in wp-config.php for WordPress Multi Site

define( 'NOBLOGREDIRECT', "https://www.wp-a2z.org/sites" ); 
bobbingwide commented 4 years ago

I don't think there's any need to update to 5.3.1 or 5.3.2 just yet.