How we can do PHPUnit testing in wordpress website ? Including theme and plugin everything.
I have setup the phpunit and included wp-load.php file to get all functions and classes access.
Is this correct way ? or There is any better way of doing the Unit Testing in wordpress.