48480eb882
The WooCommerce unit tests started failing when running using WP nightly with the following error: ``` Fatal error: require_once(): Failed opening required '/tmp/wordpress-tests-lib/src//wp-includes/class-phpmailer.php' (include_path='.:/home/travis/.phpenv/versions/7.4.2/share/pear') in /tmp/wordpress-tests-lib/includes/mock-mailer.php on line 2 ``` https://travis-ci.org/woocommerce/woocommerce/jobs/646855363#L1955 This was happening because WP changed the syntax of the line where ABSPATH is defined in the context of the unit tests (https://core.trac.wordpress.org/changeset/47198/trunk/wp-tests-config-sample.php) and we rely on this syntax to change ABSPATH when running `tests/bin/install.sh`. To fix this problem, this commit updates the sed command used to change ABSPATH to work when both the old and new syntaxes are used. In the future we might want to consider a more robust solution to the problem of updating ABSPATH. |
||
---|---|---|
.. | ||
e2e-test-integration.js | ||
install.sh | ||
phpcs.sh | ||
phpunit.sh | ||
run-e2e-CI.sh | ||
travis.sh |