download() {
if [ `which curl` ]; then
curl -s "$1" > "$2";
elif [ `which wget` ]; then
wget -nv -O "$2" "$1"
fi
}

if [ $# -lt 5 ]; then
echo "usage: $0 "
exit 1
fi

DB_NAME=$1
DB_USER=$2
DB_PASS=$3
DB_HOST=$4
GFACTIVATIONKEY=$5

TMPDIR=${TMPDIR-/tmp}
TMPDIR=$(echo $TMPDIR | sed -e "s/\/$//")
WP_TESTS_DIR=${WP_TESTS_DIR-$TMPDIR/wordpress-tests-lib}
WP_CORE_DIR=${WP_CORE_DIR-$TMPDIR/wordpress/}

# CLEAR OLD STUFF
if [ -d "$WP_TESTS_DIR" ]; then
rm -r --force "$WP_TESTS_DIR"
fi

if [ -d "$WP_CORE_DIR" ]; then
rm -r "$WP_CORE_DIR"
fi

mysqladmin drop $DB_NAME --user="$DB_USER" --password="$DB_PASS" --host="${DB_HOST}" --force || true

# INSTALL WP-CORE
wp core download --path="${WP_CORE_DIR}" --allow-root
wp config create --dbuser="${DB_USER}" --dbpass="${DB_PASS}" --dbname="${DB_NAME}" --dbhost="${DB_HOST}" --path="${WP_CORE_DIR}" --dbprefix="wptests_" --allow-root

wp db create --path="${WP_CORE_DIR}" --allow-root
wp core install --url="127.0.0.1" --title="TestEnvironment" --admin_user="admin" --admin_password="admin" --admin_email="admin@test.de" --path="${WP_CORE_DIR}" --allow-root --skip-email

WP_VERSION=$(wp core version --allow-root --path=${WP_CORE_DIR})


# INSTALL WP-PLUGINS
wp plugin install "gravityformscli" --activate --path="${WP_CORE_DIR}" --force --allow-root
wp gf install --key="${GFACTIVATIONKEY}" --activate --path="${WP_CORE_DIR}" --force --allow-root
wp gf install "gravityformspartialentries" --key="${GFACTIVATIONKEY}" --activate --path="${WP_CORE_DIR}" --force --allow-root
wp gf install "gravityformssurvey" --key="${GFACTIVATIONKEY}" --activate --path="${WP_CORE_DIR}" --force --allow-root
wp gf install "gravityformspolls" --key="${GFACTIVATIONKEY}" --activate --path="${WP_CORE_DIR}" --force --allow-root
wp gf install "gravityformsquiz" --key="${GFACTIVATIONKEY}" --activate --path="${WP_CORE_DIR}" --force --allow-root

# Import Forms into GravityForms
for f in $(dirname $0)/Utils/gfimport/*.json
do
echo "Processing $f"
wp gf form import "$f" --path="${WP_CORE_DIR}" --allow-root
done

# Install WP-Testsuite for PHPUnit
if [ ! -d $WP_TESTS_DIR ]; then
mkdir -p $WP_TESTS_DIR
svn co --quiet https://develop.svn.wordpress.org/tags/${WP_VERSION}/tests/phpunit/includes/ $WP_TESTS_DIR/includes
svn co --quiet https://develop.svn.wordpress.org/tags/${WP_VERSION}/tests/phpunit/data/ $WP_TESTS_DIR/data
fi

# ToDo: edit file: "$WP_TESTS_DIR"/wp-tests-config.php´
This post has been viewed 244 times.

The TextSaver is a simple free tech tool to help save bits of text. You can use it to save notes, text messages, archive text messages from an iPhone or Android, save HTML, avoid PDFs, export messages, lists, phone numbers, addresses, really whatever you want. Please note that saved text is not hidden from the public unless you use the password utility. When using a password, the text will only be viewable to those with a password. Use it for fun, use it for war, use it to control the minds of your enemies.

Legal Disclaimer The website https://textsaver.flap.tv/ (hereinafter referred to as "TextSaver") is a platform designed to allow users to store and share bits of text. TextSaver and its owners do not review, approve, endorse, or make any representations about the legality, accuracy, reliability, completeness, or quality of the content posted by its users. The content reflects the views and responsibility of the person or entity that posts it and does not necessarily represent the views of TextSaver. By using TextSaver, you agree that TextSaver, its owners, affiliates, employees, or agents shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content available on or through TextSaver. Users are solely responsible for their content, including compliance with intellectual property laws, confidentiality obligations, and applicable local laws. TextSaver expressly disclaims all liability in relation to the content posted by users. If you believe that any content on TextSaver infringes upon your intellectual property rights or is otherwise unlawful, please contact us with detailed information, and we will take appropriate action in accordance with our policies and applicable laws.