Skip to content

Instantly share code, notes, and snippets.

@gardenboi
gardenboi / VVV-PHPUnit.sh
Last active December 13, 2023 00:01
Execute install-wp-tests.sh in a VVV machine for PHPUnit testing
#!/bin/bash
#Get the args with or default
SKIP_DB_CREATION=${1:-false}
DB_USER=${2:-root}
DB_PASS=${3:-root}
DB_NAME=${4:-cf7a_tests}
DB_HOST=${5:-127.0.0.1}
WP_VERSION=${6:-latest}