🏠
Hi there! 👋
I’m JuanMa, a Developer Relations Advocate at Automattic.

In this blog, I'll be sharing my insights and learnings in development, with a particular focus on WordPress development.

I write in both Spanish and English


Category: Unit Testing

  • Testing HTML output in WordPress

    WordPress 6.9 introduces assertEqualHTML(), a PHPUnit assertion that compares HTML semantically — so tests no longer break over attribute ordering or whitespace. I wrote about it for the WordPress Developer…


  • Debugging WordPress Tests: database transactions

    When I was debugging WordPress integration tests with Xdebug, I ran into something that really confused me. I used the WordPress test factory to create an administrator user: I paused…


  • IntelliSense for WP_UnitTestCase and WordPress symbols in PHPUnit Tests

    I’ve been focused on understanding deeply how unit tests work in WordPress for PHP code. One of the things that don’t come out of the box is direct access from…


  • WordPress Plugin Testing: Unit vs Integration

    When we talk about adding “tests for a WordPress plugin”, we can talk about two different kind of tests: In this article, I go step-by-step through setting up robust testing…


  • How to Scaffold a Plugin with WP-CLI and Set Up Testing

    This article is focused on the practical implementation of WordPress plugin testing. With WP-CLI we can generate a production-ready plugin structure that include comprehensive testing infrastructure from the start. We’ll…


Navigation

About

Writing on the Wall is a newsletter for freelance writers seeking inspiration, advice, and support on their creative journey.