This plugin was developed to provide Stream Flow Data to websites I had developed. You can download it from the WordPress Repository here.
Since the origional development it has also turned into a little bit of a playground for learning new processes while developing for WordPress.
The tests are scafolded through the wp scaffold plugin-tests
command. You can find more details on setting up your testing environment in the WordPress Handbook.
To setup the testing environment you will need to first run setup the testing environment. This is done by running the vendor/bin/install-wp-tests.sh
file including the database name, username, password, host and wordpress version.
bash vendor/bin/install-wp-tests.sh wordpress_test root '' localhost latest
or if you are connecting to MySQL via a socket connection
bash vendor/bin/install-wp-tests.sh wordpress_test root root localhost:/tmp/socket-address.sock latest
./vendor/bin/phpunit tests/test-sample