I’m using PHPUnit/WP_UnitTestCase to unit test a WP theme. I need to simulate that I’m […]
Tag: phpunit
TDD with WordPress global functions and PHPUnit
I’m trying to do tdd with my WordPress plugins. The problem is that using WP_UnitTestCase […]
WordPress plugin phpunit tests with dependencies
I suspect this would be a duplicate question or something with a very simple answer, […]
(WP-CLI) WordPress-Tests_Lib files not being created
I’m trying to do WordPress Plugin Testing on Ubuntu 14.04 and I’m going through the […]
Using WP_UnitTestCase scaffolding in PHPStrom with composer
I configured WP_UnitTestCase and the wp_cli and PHPUnit with composer in PHPStorm. I had an […]
WordPress get_query_var with PHPUnit empty
I want to test a custom query_var that I have created. When I run the […]
stub a single function – no class involved – php
The first function you see in this wp source code is what I want to […]
How to setup a mocked WP_Query in a WP_UnitTestCase
How do I setup a mock global $wp_query for a unit test? I basically want […]
Is there a way to mock a class and use regular class construction?
Background: I am still learning to use mocks and am trying to test a WordPress […]
RecursiveDirectoryIterator Error on phpunit with wordpress
I’m trying to do unit test of wordpress plugin by phpunit(ver 4.2.6). But when I […]
No More Posts Available.
No more pages to load.