Skip to content

Commit 84a37f5

Browse files
author
Paul Bearne
committed
Declare return type for data_got_mod_rewrite() in unit test.
1 parent 1f73812 commit 84a37f5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/phpunit/tests/admin/includes/misc/gotModRewrite.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
*/
1111
class Tests_got_mod_rewrite extends WP_UnitTestCase {
1212

13+
public function tear_down() {
14+
remove_all_filters( 'got_rewrite' );
15+
parent::tear_down();
16+
}
17+
1318
/**
1419
* Tests that got_mod_rewrite() correctly detects mod_rewrite based on server and filters.
1520
*
@@ -56,7 +61,7 @@ public function test_got_mod_rewrite( $expected, $apache_loaded, $filter_value =
5661
* filter_value: bool|null,
5762
* }>
5863
*/
59-
public function data_got_mod_rewrite() {
64+
public function data_got_mod_rewrite(): array {
6065
return array(
6166
'Default behavior (should match filter or internal check)' => array(
6267
'expected' => true,

0 commit comments

Comments
 (0)