Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tools: Try adding infrastructure for PHPUnit tests (#299)
* Add PHPUnit bootstrapping * Install deps correctly. * Fix composer deps * Setup wp-env too * Update to gutenberg bootstrap * Add phpunit deps * Set the WP_RUN_CORE_TESTS constant so that we can test the wp_environment_type * Force phpunits config file not to be forced to local environment, to allow testing. * Attempt to work around phpunit-wp-config.php permissions * Revert "Attempt to work around phpunit-wp-config.php permissions" This reverts commit 9897577. * Attempt to workaround wp-env permissions and limitations. * Simplify the phpunit bootstrapping * Move @wordpress/env to a devDep * Update WP version for unit test install * Use the files from wp-env if available * Set a null `WP_ENVIRONMENT_TYPE` for the test environment * Update workflow to use yarn, cache yarn deps, remove `WP_ENVIRONMENT_TYPE` workaround * Update test test to passing tests only * Update testing branch name * Fix workflow file indentation Co-authored-by: Dion Hulse <[email protected]> Co-authored-by: Dion Hulse <[email protected]> Co-authored-by: Dion Hulse <[email protected]>
- Loading branch information