Skip to content
Snippets Groups Projects

Fix fatal in test run under PHP 8

Merged Erick Hitter requested to merge fix/test into master
3 files
+ 63
11
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 066959ea
    Fix fatal in test run under PHP 8 · 066959ea
    Erick Hitter authored
    ```
    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
    ```
+ 3
0
@@ -27,5 +27,8 @@ function _manually_load_plugin() {
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
// Load base class for compatibility.
require __DIR__ . '/class-test-case.php';
// Start up the WP testing environment.
require $_tests_dir . '/includes/bootstrap.php';
Loading