Title: Topic Tag: phpunit | WordPress.org

---

# Topic Tag: phpunit

    - Topic
    - Participants
    - Replies
    - Last Post
 *  -  [Looking for the solution to execute WordPress test on Github worflow](https://wordpress.org/support/topic/looking-for-the-solution-to-execute-wordpress-test-on-github-worflow/)
    -  Started by: [WP Dev](https://wordpress.org/support/users/naveedalam/)
    - 2
    - 1
    -  [1 year, 10 months ago](https://wordpress.org/support/topic/looking-for-the-solution-to-execute-wordpress-test-on-github-worflow/#post-17848066)
    -  [mdshak](https://wordpress.org/support/users/mdshak/)
 *  -  [How to build envinronment for WordPress development?](https://wordpress.org/support/topic/how-to-build-envinronment-for-wordpress-development/)
    -  Started by: [Edgar](https://wordpress.org/support/users/wpedgar/)
    - 1
    - 0
    -  [2 years, 3 months ago](https://wordpress.org/support/topic/how-to-build-envinronment-for-wordpress-development/)
    -  [Edgar](https://wordpress.org/support/users/wpedgar/)
 *  -  [How to run PHPunit tests with wp-env?](https://wordpress.org/support/topic/how-to-run-phpunit-tests-with-wp-env/)
    -  Started by: [enzam](https://wordpress.org/support/users/enzam/)
    - 3
    - 2
    -  [2 years, 11 months ago](https://wordpress.org/support/topic/how-to-run-phpunit-tests-with-wp-env/#post-16831114)
    -  [enzam](https://wordpress.org/support/users/enzam/)
 *  -  [Phpunit: making multiple ajax calls in one test](https://wordpress.org/support/topic/phpunit-making-multiple-ajax-calls-in-one-test/)
    -  Started by: [Jack](https://wordpress.org/support/users/jack1132132/)
    - 2
    - 1
    -  [3 years, 3 months ago](https://wordpress.org/support/topic/phpunit-making-multiple-ajax-calls-in-one-test/#post-16439961)
    -  [threadi](https://wordpress.org/support/users/threadi/)
 *  -  [WordPress – PHPunit test](https://wordpress.org/support/topic/wordpress-phpunit-test/)
    -  Started by: [erenygamal](https://wordpress.org/support/users/erenygamal/)
    - 2
    - 1
    -  [4 years, 3 months ago](https://wordpress.org/support/topic/wordpress-phpunit-test/#post-15310531)
    -  [Javier Arce](https://wordpress.org/support/users/javiarce/)
 *  -  [PHPUnit/Codeception + Plugin with custom tables & constants](https://wordpress.org/support/topic/phpunit-codeception-plugin-with-custom-tables-constants/)
    -  Started by: [nathanmal](https://wordpress.org/support/users/nathanmal/)
    - 2
    - 1
    -  [4 years, 4 months ago](https://wordpress.org/support/topic/phpunit-codeception-plugin-with-custom-tables-constants/#post-15230208)
    -  [Brian Alexander](https://wordpress.org/support/users/ironprogrammer/)
 *  -  [How test admin content in PHPUnit](https://wordpress.org/support/topic/how-test-admin-content-in-phpunit/)
    -  Started by: [notconnected](https://wordpress.org/support/users/notconnected/)
    - 3
    - 1
    -  [4 years, 7 months ago](https://wordpress.org/support/topic/how-test-admin-content-in-phpunit/#post-14959744)
    -  [notconnected](https://wordpress.org/support/users/notconnected/)
 *  -  [How should we use wordpress core tests?](https://wordpress.org/support/topic/how-should-we-use-wordpress-core-tests/)
    -  Started by: [grafdev](https://wordpress.org/support/users/grafdev/)
    - 2
    - 4
    -  [5 years, 5 months ago](https://wordpress.org/support/topic/how-should-we-use-wordpress-core-tests/#post-13777143)
    -  [grafdev](https://wordpress.org/support/users/grafdev/)
 *  -  [Integration tests are not covering code in PHPUnit](https://wordpress.org/support/topic/integration-tests-are-not-covering-code-in-phpunit/)
    -  Started by: [Denis Žoljom](https://wordpress.org/support/users/dingo_d/)
    - 1
    - 0
    -  [6 years, 9 months ago](https://wordpress.org/support/topic/integration-tests-are-not-covering-code-in-phpunit/)
    -  [Denis Žoljom](https://wordpress.org/support/users/dingo_d/)
 *  -  [phpunit no tests executed](https://wordpress.org/support/topic/phpunit-no-tests-executed/)
    -  Started by: [shanebp](https://wordpress.org/support/users/shanebp/)
    - 1
    - 2
    -  [7 years, 3 months ago](https://wordpress.org/support/topic/phpunit-no-tests-executed/#post-11223496)
    -  [shanebp](https://wordpress.org/support/users/shanebp/)
 *  -  [[Pound :: Easy Unit Testing For WordPress] Awesome start!](https://wordpress.org/support/topic/awesome-start-3/)
    -  Started by: [johndeebdd](https://wordpress.org/support/users/johndeebdd/)
    - 1
    - 0
    -  [7 years, 4 months ago](https://wordpress.org/support/topic/awesome-start-3/)
 *  -  [Mocking or create dummy of wpdb class with Prophecy in PHPUnit.](https://wordpress.org/support/topic/mocking-or-create-dummy-of-wpdb-class-with-prophecy-in-phpunit/)
    -  Started by: [borek87](https://wordpress.org/support/users/borek87/)
    - 2
    - 1
    -  [7 years, 6 months ago](https://wordpress.org/support/topic/mocking-or-create-dummy-of-wpdb-class-with-prophecy-in-phpunit/#post-10809103)
    -  [spoemand](https://wordpress.org/support/users/spoemand/)
 *  -  [[Chartbeat] Nested Function causing PHPUnit errors](https://wordpress.org/support/topic/nested-function-causing-phpunit-errors/)
    -  Started by: [matthewroesger](https://wordpress.org/support/users/matthewroesger/)
    - 1
    - 0
    -  [7 years, 10 months ago](https://wordpress.org/support/topic/nested-function-causing-phpunit-errors/)
    -  [matthewroesger](https://wordpress.org/support/users/matthewroesger/)
 *  -  [wp-cli scaffold plugin-tests does not pass phpcs rules](https://wordpress.org/support/topic/wp-cli-scaffold-plugin-tests-does-not-pass-phpcs-rules/)
    -  Started by: [Ryan Williams](https://wordpress.org/support/users/cyclic/)
    - 1
    - 1
    -  [7 years, 12 months ago](https://wordpress.org/support/topic/wp-cli-scaffold-plugin-tests-does-not-pass-phpcs-rules/#post-10308934)
    -  [Ryan Williams](https://wordpress.org/support/users/cyclic/)
 *  -  [WP-CLI install-wp-tests required files cannot be found](https://wordpress.org/support/topic/wp-cli-install-wp-tests-required-files-cannot-be-found/)
    -  Started by: [mysti9uemirage](https://wordpress.org/support/users/mysti9uemirage/)
    - 1
    - 1
    -  [8 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-install-wp-tests-required-files-cannot-be-found/#post-10026141)
    -  [mysti9uemirage](https://wordpress.org/support/users/mysti9uemirage/)
 *  -  [WP CLI Setup: Error when running install-wp-tests.sh file](https://wordpress.org/support/topic/wp-cli-setup-error-when-running-install-wp-tests-sh-file/)
    -  Started by: [Kyle Tozer](https://wordpress.org/support/users/kkslider90/)
    - 1
    - 0
    -  [8 years, 8 months ago](https://wordpress.org/support/topic/wp-cli-setup-error-when-running-install-wp-tests-sh-file/)
    -  [Kyle Tozer](https://wordpress.org/support/users/kkslider90/)
 *  -  [Using PHP Unit and WP-CLI with WordPress](https://wordpress.org/support/topic/using-php-unit-and-wp-cli-with-wordpress/)
    -  Started by: [Deryck](https://wordpress.org/support/users/deryck/)
    - 2
    - 2
    -  [9 years, 1 month ago](https://wordpress.org/support/topic/using-php-unit-and-wp-cli-with-wordpress/#post-9022694)
    -  [Deryck](https://wordpress.org/support/users/deryck/)
 *  -  [[WooCommerce] Dynamic pricing, cart totals in PHPUnit](https://wordpress.org/support/topic/dynamic-pricing-cart-totals-in-phpunit/)
    -  Started by: [sagalbot](https://wordpress.org/support/users/sagalbot/)
    - 1
    - 0
    -  [9 years, 1 month ago](https://wordpress.org/support/topic/dynamic-pricing-cart-totals-in-phpunit/)
    -  [sagalbot](https://wordpress.org/support/users/sagalbot/)
 *  -  [WP_UnitTestCase::tearDownAfterClass() -> “mysqli_query(): Couldn’t fetch mysqli”](https://wordpress.org/support/topic/wp_unittestcaseteardown-causes-mysqli_query-couldnt-fetch-mysqli/)
    -  Started by: [umchal](https://wordpress.org/support/users/umchal/)
    - 4
    - 4
    -  [9 years, 5 months ago](https://wordpress.org/support/topic/wp_unittestcaseteardown-causes-mysqli_query-couldnt-fetch-mysqli/#post-8570345)
    -  [Ryan McCue](https://wordpress.org/support/users/rmccue/)
 *  -  [PHP Unit Test a Plugin AJAX Functionality with WP_Ajax_UnitTestCase](https://wordpress.org/support/topic/php-unit-test-a-plugin-ajax-functionality-with-wp_ajax_unittestcase/)
    -  Started by: [David Aguilera](https://wordpress.org/support/users/davilera/)
    - 1
    - 1
    -  [9 years, 9 months ago](https://wordpress.org/support/topic/php-unit-test-a-plugin-ajax-functionality-with-wp_ajax_unittestcase/#post-7655876)
    -  [David Aguilera](https://wordpress.org/support/users/davilera/)
 *  -  [Optimize plugin phpunit test suite startup speed](https://wordpress.org/support/topic/optimize-plugin-phpunit-test-suite-startup-speed/)
    -  Started by: [Eric Teubert](https://wordpress.org/support/users/eteubert/)
    - 1
    - 2
    -  [10 years, 10 months ago](https://wordpress.org/support/topic/optimize-plugin-phpunit-test-suite-startup-speed/#post-6273596)
    -  [Eric Teubert](https://wordpress.org/support/users/eteubert/)
 *  -  [unit testing examples](https://wordpress.org/support/topic/unit-testing-examples/)
    -  Started by: [scossar](https://wordpress.org/support/users/scossar/)
    - 1
    - 1
    -  [11 years, 8 months ago](https://wordpress.org/support/topic/unit-testing-examples/#post-5249661)
    -  [scossar](https://wordpress.org/support/users/scossar/)
 *  -  [[Contact Form DB] phpunit folder included in latest version breaks deployment](https://wordpress.org/support/topic/phpunit-folder-included-in-latest-version-breaks-deployment/)
    -  Started by: [Never Settle](https://wordpress.org/support/users/neversettle/)
    - 2
    - 4
    -  [11 years, 8 months ago](https://wordpress.org/support/topic/phpunit-folder-included-in-latest-version-breaks-deployment/#post-5208784)
    -  [Never Settle](https://wordpress.org/support/users/neversettle/)
 *  -  [PHPUnit testing](https://wordpress.org/support/topic/phpunit-testing/)
    -  Started by: [danhgilmore](https://wordpress.org/support/users/danhgilmore/)
    - 1
    - 1
    -  [12 years, 7 months ago](https://wordpress.org/support/topic/phpunit-testing/#post-3730003)
    -  [danhgilmore](https://wordpress.org/support/users/danhgilmore/)
 *  -  [Best practice for PhpUnit tests for parts of a plugin](https://wordpress.org/support/topic/best-practice-for-phpunit-tests-for-parts-of-a-plugin/)
    -  Started by: [OllieJones](https://wordpress.org/support/users/olliejones/)
    - 2
    - 1
    -  [13 years, 2 months ago](https://wordpress.org/support/topic/best-practice-for-phpunit-tests-for-parts-of-a-plugin/#post-3543477)
    -  [blogger323](https://wordpress.org/support/users/blogger323/)
 *  -  [[Contact Form 7] Fix for running with unit tests](https://wordpress.org/support/topic/fix-for-running-with-unit-tests/)
    -  Started by: [dave1010](https://wordpress.org/support/users/dave1010/)
    - 2
    - 1
    -  [13 years, 2 months ago](https://wordpress.org/support/topic/fix-for-running-with-unit-tests/#post-3517889)
    -  [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 *  -  [Running WordPress tests with PHPUnit](https://wordpress.org/support/topic/running-wordpress-tests-with-phpunit/)
    -  Started by: [dvmorris](https://wordpress.org/support/users/dvmorris/)
    - 3
    - 4
    -  [14 years, 12 months ago](https://wordpress.org/support/topic/running-wordpress-tests-with-phpunit/#post-1551567)
    -  [romulodl](https://wordpress.org/support/users/romulodl/)
 *   

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics

## Feeds

 * [RSS Recent Posts](https://wordpress.org/support/forums/feed/)
 * [RSS Recent Topics](https://wordpress.org/support/topics/feed/)