From e73803aa11ffaf906002f768d2fa9c251865792e Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 9 Jul 2022 15:03:24 -0700
Subject: [PATCH] Test coverage

---
 .gitlab-ci.yml                  | 6 ++++++
 tests/inc/class-test-plugin.php | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 24e3d30..303a7ed 100755
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,3 +3,9 @@ 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/inc/class-test-plugin.php b/tests/inc/class-test-plugin.php
index 2655d1a..7dd0de8 100755
--- a/tests/inc/class-test-plugin.php
+++ b/tests/inc/class-test-plugin.php
@@ -26,7 +26,7 @@ class Test_Plugin extends WP_UnitTestCase {
 	public function tear_down() {
 		parent::tear_down();
 
-//		$this->_invoke_method( 0, 'flush_redis_db' );
+		$this->_invoke_method( 0, 'flush_redis_db' );
 	}
 
 	/**
-- 
GitLab