Skip to content

Commit

Permalink
build: fix coverage not working
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 22, 2024
1 parent 9087f4e commit c3a744b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
bootstrap="vendor/autoload.php"
colors="true"
>
<php>
<!-- For WordPress -->
<const name="ABSPATH" value="1" />

<!-- For detecting test runs-->
<const name="MYPARCELNL_PEST" value="1" />
</php>

<testsuites>
<testsuite name="Test Suite">
<directory>./tests/Unit</directory>
Expand Down
3 changes: 0 additions & 3 deletions tests/mock_class_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
use MyParcelNL\WooCommerce\Tests\Mock\MockWpRestServer;
use MyParcelNL\WooCommerce\Tests\Mock\MockWpTerm;

/** @see \MyParcelNL\WooCommerce\bootPdk() */
const MYPARCELNL_PEST = true;

class WC_Data
{
public function __construct() {}
Expand Down

0 comments on commit c3a744b

Please sign in to comment.