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
+ 2
64
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 8e386725
    Fix fatal in test run under PHP 8 · 8e386725
    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
    ```
+ 0
3
@@ -27,8 +27,5 @@ 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