Skip to content
Snippets Groups Projects
Commit bcd793e5 authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix tests for PHP 8

parent 129c299f
No related branches found
No related tags found
1 merge request!13Fix tests for PHP 8
Pipeline #4789 failed
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
convertWarningsToExceptions="true" convertWarningsToExceptions="true"
> >
<testsuites> <testsuites>
<testsuite> <testsuite name="external-permalinks-redux">
<directory prefix="test-" suffix=".php">./tests/</directory> <directory prefix="test-" suffix=".php">./tests/</directory>
<exclude>./tests/test-sample.php</exclude> <exclude>./tests/test-sample.php</exclude>
</testsuite> </testsuite>
......
...@@ -43,8 +43,8 @@ class AdminCallbacks extends WP_UnitTestCase { ...@@ -43,8 +43,8 @@ class AdminCallbacks extends WP_UnitTestCase {
/** /**
* Create some objects with redirects. * Create some objects with redirects.
*/ */
public function setUp() { public function set_up() {
parent::setUp(); parent::set_up();
$this->plugin = external_permalinks_redux::get_instance(); $this->plugin = external_permalinks_redux::get_instance();
......
...@@ -31,8 +31,8 @@ class PermalinkFilters extends WP_UnitTestCase { ...@@ -31,8 +31,8 @@ class PermalinkFilters extends WP_UnitTestCase {
/** /**
* Create some objects with redirects. * Create some objects with redirects.
*/ */
public function setUp() { public function set_up() {
parent::setUp(); parent::set_u();
$plugin = external_permalinks_redux::get_instance(); $plugin = external_permalinks_redux::get_instance();
......
...@@ -24,8 +24,8 @@ class RedirectCallbacks extends WP_UnitTestCase { ...@@ -24,8 +24,8 @@ class RedirectCallbacks extends WP_UnitTestCase {
/** /**
* Create some objects with redirects. * Create some objects with redirects.
*/ */
public function setUp() { public function set_up() {
parent::setUp(); parent::set_up();
$this->plugin = external_permalinks_redux::get_instance(); $this->plugin = external_permalinks_redux::get_instance();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment