From bcd793e55f8647dafbc3e9d0109c5d9778343a4a Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 11 Jun 2022 14:03:00 -0700
Subject: [PATCH] Fix tests for PHP 8

---
 phpunit.xml                       | 2 +-
 tests/test-admin-callbacks.php    | 4 ++--
 tests/test-permalink-filters.php  | 4 ++--
 tests/test-redirect-callbacks.php | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/phpunit.xml b/phpunit.xml
index 16a3902..2d460ab 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -8,7 +8,7 @@
 	convertWarningsToExceptions="true"
 	>
 	<testsuites>
-		<testsuite>
+		<testsuite name="external-permalinks-redux">
 			<directory prefix="test-" suffix=".php">./tests/</directory>
 			<exclude>./tests/test-sample.php</exclude>
 		</testsuite>
diff --git a/tests/test-admin-callbacks.php b/tests/test-admin-callbacks.php
index 61ccbb0..8302139 100755
--- a/tests/test-admin-callbacks.php
+++ b/tests/test-admin-callbacks.php
@@ -43,8 +43,8 @@ class AdminCallbacks extends WP_UnitTestCase {
 	/**
 	 * Create some objects with redirects.
 	 */
-	public function setUp() {
-		parent::setUp();
+	public function set_up() {
+		parent::set_up();
 
 		$this->plugin = external_permalinks_redux::get_instance();
 
diff --git a/tests/test-permalink-filters.php b/tests/test-permalink-filters.php
index 508318f..2628400 100755
--- a/tests/test-permalink-filters.php
+++ b/tests/test-permalink-filters.php
@@ -31,8 +31,8 @@ class PermalinkFilters extends WP_UnitTestCase {
 	/**
 	 * Create some objects with redirects.
 	 */
-	public function setUp() {
-		parent::setUp();
+	public function set_up() {
+		parent::set_u();
 
 		$plugin = external_permalinks_redux::get_instance();
 
diff --git a/tests/test-redirect-callbacks.php b/tests/test-redirect-callbacks.php
index be3eea3..a09b89f 100755
--- a/tests/test-redirect-callbacks.php
+++ b/tests/test-redirect-callbacks.php
@@ -24,8 +24,8 @@ class RedirectCallbacks extends WP_UnitTestCase {
 	/**
 	 * Create some objects with redirects.
 	 */
-	public function setUp() {
-		parent::setUp();
+	public function set_up() {
+		parent::set_up();
 
 		$this->plugin = external_permalinks_redux::get_instance();
 	}
-- 
GitLab