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

Merge branch 'fix/tests' into 'master'

Fix tests for PHP 8

See merge request !13
parents 38327979 a08a8ea4
Branches
Tags
1 merge request!13Fix tests for PHP 8
Pipeline #4795 passed
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
convertWarningsToExceptions="true" convertWarningsToExceptions="true"
> >
<testsuites> <testsuites>
<testsuite> <testsuite name="eth-redirect-to-latest-post">
<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>
......
...@@ -24,8 +24,8 @@ class PluginTest extends WP_UnitTestCase { ...@@ -24,8 +24,8 @@ class PluginTest extends WP_UnitTestCase {
* slug used for redirection so that we can confirm that * slug used for redirection so that we can confirm that
* redirection takes priority. * redirection takes priority.
*/ */
public function setUp() { public function set_up() {
parent::setUp(); parent::set_up();
$this->factory->post->create_many( $this->factory->post->create_many(
10, 10,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment