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 with stages
in 2 minutes and 6 seconds
......@@ -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>
......
......@@ -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();
......
......@@ -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();
......
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment