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

Fix tests for PHP 8

parent 38327979
No related branches found
No related tags found
1 merge request!13Fix tests for PHP 8
Pipeline #4794 passed
......@@ -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>
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment