Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

testing

Set up PHPUnit with WordPress: The WordPress tests are 3 – 4 years old; does it matter?

That seems to be an old repo, you should use https://core.trac.wordpress.org/browser/trunk/tests. Obviously trunk should be used if you want to use the tests with 4.6. Not sure how much difference there is in the infrastructure between the version (in other words, it is unlikely that you care how core does a specific test, therefor the … Read more

Categories testing Tags testing, unit-tests

How do I get PHPUnit Polyfills set up for testing on a mac?

OK, I was reading from an outdated tutorial. Command for running tests is now: vendor/bin/phpunit <path_to_file> This command should be Run from root directory of wordpress.

Categories testing Tags testing

why my must use plugins (mu-plugins) not work at localhost?

It does not work because that’s not the mu-plugins folder. The mu-plugins folder goes in the wp-content folder at wp-content/mu-plugins. Note that mu-plugins is not the same as plugin folder, but rather a place that you can put arbitrary PHP files that are all loaded. Files in subfolders are not loaded, and files are not … Read more

Categories testing Tags mu-plugins, testing

WordPress Automatic Testing Probelm

WordPress Automatic Testing Probelm

Categories testing Tags testing, unit-tests

How to use WordPress methods (themes, plugins, context) with Behat?

How to use WordPress methods (themes, plugins, context) with Behat?

Categories testing Tags composer, testing

Is there a way to mock update_option for unit testing?

Is there a way to mock update_option for unit testing?

Categories testing Tags testing, unit-tests

Am I testing this right?

Am I testing this right?

Categories testing Tags testing, unit-tests

Integration testing – test is_wp_error in the code?

Integration testing – test is_wp_error in the code?

Categories testing Tags testing

Integration tests don’t register menu

Integration tests don’t register menu

Categories testing Tags integration-tests, testing

Coverage in integration tests

Coverage in integration tests

Categories testing Tags integration-tests, testing, unit-tests
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress