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

Fix fatal in test run under PHP 8

```
Fatal error: Declaration of PostFilters::setUp() must be compatible with Yoast\PHPUnitPolyfills\TestCases\TestCase::setUp(): void in /builds/wp-plugins/view-all-posts-pages/tests/test-post-filters.php on line 40
```
parent 0fb67900
Branches
Tags
1 merge request!18Fix fatal in test run under PHP 8
Pipeline #4781 passed with warnings
...@@ -37,7 +37,7 @@ class PostFilters extends WP_UnitTestCase { ...@@ -37,7 +37,7 @@ class PostFilters extends WP_UnitTestCase {
/** /**
* Prepare data for tests. * Prepare data for tests.
*/ */
public function setUp() { protected function setUp() {
parent::setUp(); parent::setUp();
static::$post_id = $this->factory->post->create( static::$post_id = $this->factory->post->create(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment