Using WordPress WP-CLI in windows

I was setting up my wordpress development environment in windows today. I wanted to have php unit tests for the plugin I have been developing for a few days, and I ran into an article which says wp-cli.phar cannot be used in windows! The article was about using PHPUnit to write wordpress plugin unit tests.

Read More »

Advertisements

Laravel PHPUnit Test Uses production configuration by Default

I came across an interesting problem today. I was Using laravel’s PHPUnit test framework to test a Eloquent class in my local environment. When I ran simple tests, I got that laravel eloquent find i was always returning null. Printing query log and running them was not helping.

Read More »