Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #72 from liquidweb/fix/cli-test-init
Browse files Browse the repository at this point in the history
Rename CLITest::init() to CLITest::init_cli() to avoid conflicting with WP_HTTP_TestCase::init()
  • Loading branch information
bswatson authored Sep 11, 2018
2 parents f4b8db5 + 76a90ff commit 35b834a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 27 deletions.
53 changes: 27 additions & 26 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
@link https://github.com/woocommerce/woocommerce/pull/18493
-->
<exclude>./vendor/woocommerce/woocommerce/tests/unit-tests/api/system-status.php</exclude>
<exclude>./vendor/woocommerce/woocommerce/tests/unit-tests/api/v2/system-status.php</exclude>

<!--
Combinations of PHP < 7.2 and WooCommerce < 3.4 are failing due to the
WC_Tests_Product_CSV_Importer::test_import() test, which relies on an external HTTP
request that's failing.
@link https://github.com/woocommerce/woocommerce/commit/0e785d46146c04f05d4ed5bc06e9ea2d575553b0
-->
<exclude>./vendor/woocommerce/woocommerce/tests/unit-tests/importer/product.php</exclude>
</testsuite>
</testsuites>
<filter>
Expand Down
2 changes: 1 addition & 1 deletion tests/test-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CLITest extends TestCase {
/**
* @before
*/
public function init() {
public function init_cli() {
$this->cli = new WooCommerce_Custom_Orders_Table_CLI();
}

Expand Down

0 comments on commit 35b834a

Please sign in to comment.