From a08a8ea442a9a60d311bf73c7d6d118566930b90 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 11 Jun 2022 14:28:40 -0700 Subject: [PATCH] Fix tests for PHP 8 --- phpunit.xml | 2 +- tests/test-plugin.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 16a3902..e7e3389 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -8,7 +8,7 @@ convertWarningsToExceptions="true" > <testsuites> - <testsuite> + <testsuite name="eth-redirect-to-latest-post"> <directory prefix="test-" suffix=".php">./tests/</directory> <exclude>./tests/test-sample.php</exclude> </testsuite> diff --git a/tests/test-plugin.php b/tests/test-plugin.php index a8b51e4..8be5542 100755 --- a/tests/test-plugin.php +++ b/tests/test-plugin.php @@ -24,8 +24,8 @@ class PluginTest extends WP_UnitTestCase { * slug used for redirection so that we can confirm that * redirection takes priority. */ - public function setUp() { - parent::setUp(); + public function set_up() { + parent::set_up(); $this->factory->post->create_many( 10, -- GitLab