From 88c4b88d4973395bb0df52fafd7fa866d2d98ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Tue, 24 Sep 2024 10:28:24 +0200 Subject: [PATCH] test --- bin/install-wp-tests.sh | 4 ++-- composer.json | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index 87f7f46..b1b970e 100755 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -192,8 +192,8 @@ install_db() { if [ $(mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA --execute='show databases;' | grep ^$DB_NAME$) ] then echo "Reinstalling will delete the existing test database ($DB_NAME)" - read -p 'Are you sure you want to proceed? [y/N]: ' DELETE_EXISTING_DB - recreate_db $DELETE_EXISTING_DB + # read -p 'Are you sure you want to proceed? [y/N]: ' DELETE_EXISTING_DB + recreate_db yes else create_db fi diff --git a/composer.json b/composer.json index 2a2a7cc..616ee6d 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", "sirbrillig/phpcs-variable-analysis": "^2.11", "phpcsstandards/phpcsextra": "^1.1.0", - "dms/phpunit-arraysubset-asserts": "^0.5.0" + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "ml/json-ld": "^1.2" }, "config": { "allow-plugins": true @@ -43,7 +44,7 @@ ], "test": [ "composer install", - "tests/install-wp-tests.sh wordpress-test root wordpress-test test-db latest true", + "bin/install-wp-tests.sh wordpress-test root wordpress-test test-db latest true", "phpunit" ] }