Skip to content
7 changes: 7 additions & 0 deletions tests/phpunit/tests/functions/forceSslAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ public function set_up() {
force_ssl_admin( false );
}

public function tear_down() {
// Restore the boot-time value set by wp_ssl_constants().
force_ssl_admin( FORCE_SSL_ADMIN );

parent::tear_down();
}

/**
* Tests that force_ssl_admin() returns expected values based on various inputs.
*
Expand Down
4 changes: 3 additions & 1 deletion tests/phpunit/tests/functions/wpTimezoneChoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
class Tests_Functions_WpTimezoneChoice extends WP_UnitTestCase {

/**
* Restores the current locale after each test runs.
* Restores the current locale and the timezone translations after each test runs.
*/
public function tear_down(): void {
restore_current_locale();
wp_timezone_choice( '', get_locale() );

parent::tear_down();
}

Expand Down
Loading