Navigate to the plugin directory and run the following commands
git clone https://github.com/weDevsOfficial/wp-project-manager.git <plugin-name>cd <plugin-dir-name>wp scaffold plugin-tests <plugin-name>(wp-cli needs to be installed first)bash bin/install-wp-tests.sh wordpress_test <db-user-name> <db-password> <db-host> latestvendor/bin/phpunit.- If there is a warning like
Warning: require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream:, runrm -rf /tmp/wordpress-tests-liband follow the steps4 to 5. - If there is a warning like
Warning: require_once(/tmp/wordpress//wp-includes/class-phpmailer.php): failed to open stream: No such file or directory in /tmp/wordpress-tests-lib/includes/mock-mailer.php, runrm -rf /tmp/wordpressand follow the steps4 to 5.