# Testing in a Trellis VM
First, loosen the security settings of MariaDB by doing the following. The MariaDB root password defaults to devpw
:
$ sudo mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;
$ sudo service mysql restart
Next:
cd /srv/www/pressbooks.test/current/web/app/plugins/pressbooks/pb-cli
composer install
export WP_CLI_BIN_DIR="/tmp/wp-cli/"
bash bin/install-package-tests.sh
./vendor/bin/behat
And you’re off to the races.