diff --git a/bin/install-local-tests.sh b/bin/install-local-tests.sh deleted file mode 100755 index c1f8cc5..0000000 --- a/bin/install-local-tests.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -set -e - -# Initialize variables with default values -TMPDIR="/tmp" -DB_NAME="wordpress_test" -DB_USER="root" -DB_PASS="" -DB_HOST="127.0.0.1" -WP_VERSION="latest" -SKIP_DB="" - -# Display usage information -usage() { - echo "Usage:" - echo "./install-local-tests.sh [--dbname=wordpress_test] [--dbuser=root] [--dbpass=''] [--dbhost=127.0.0.1] [--wpversion=latest] [--no-db]" -} - -# Parse command-line arguments -for i in "$@" -do -case $i in - --dbname=*) - DB_NAME="${i#*=}" - shift - ;; - --dbuser=*) - DB_USER="${i#*=}" - shift - ;; - --dbpass=*) - DB_PASS="${i#*=}" - shift - ;; - --dbhost=*) - DB_HOST="${i#*=}" - shift - ;; - --wpversion=*) - WP_VERSION="${i#*=}" - shift - ;; - --no-db) - SKIP_DB="true" - shift - ;; - *) - # unknown option - usage - exit 1 - ;; -esac -done - -# Run install-wp-tests.sh -echo "Installing local tests into ${TMPDIR}" -bash "$(dirname "$0")/install-wp-tests.sh" "$DB_NAME" "$DB_USER" "$DB_PASS" "$DB_HOST" "$WP_VERSION" "$SKIP_DB" - -# Run PHPUnit -echo "Running PHPUnit" -composer phpunit diff --git a/bin/phpunit-test.sh b/bin/phpunit-test.sh deleted file mode 100755 index f0030fa..0000000 --- a/bin/phpunit-test.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e - -DIRNAME=$(dirname "$0") - -bash "${DIRNAME}/install-wp-tests.sh" wordpress_test root root 127.0.0.1 latest -echo "Running PHPUnit on Single Site" -composer phpunit -rm -rf $WP_TESTS_DIR $WP_CORE_DIR - -bash "${DIRNAME}/install-wp-tests.sh" wordpress_test root root 127.0.0.1 nightly true -echo "Running PHPUnit on Single Site (Nightly WordPress)" -composer phpunit - -bash "${DIRNAME}/install-wp-tests.sh" wordpress_test root root 127.0.0.1 latest true -echo "Running PHPUnit on Multisite" -WP_MULTISITE=1 composer phpunit