From 0ccbeefcda48bc835232fb39e6b2cdbcd76993d4 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 9 Jul 2022 15:08:25 -0700 Subject: [PATCH] Test coverage --- .gitlab-ci.yml | 6 ------ tests/bootstrap.php | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 303a7ed..24e3d30 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,9 +3,3 @@ include: - remote: https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/cache.yml - remote: https://git.ethitter.com/gitlab/ci/wordpress/-/raw/add/redis/plugins/templates/before-script-redis.yml - remote: https://git.ethitter.com/gitlab/ci/wordpress/-/raw/add/redis/plugins/templates/matrix-redis.yml - -connect: - # Connect to PostgreSQL database as user postgres, without password - image: redis - script: - - redis-cli -h redis PING diff --git a/tests/bootstrap.php b/tests/bootstrap.php index f838a17..9807b53 100755 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -5,6 +5,10 @@ * @package WP_Revisions_Control */ +if ( ! defined( 'WP_REDIS_USER_SESSION_HOST' ) ) { + define( 'WP_REDIS_USER_SESSION_HOST', 'redis' ); +} + $redis_user_session_storage = getenv( 'WP_TESTS_DIR' ); if ( ! $redis_user_session_storage ) { -- GitLab