Skip to content

Commit

Permalink
Cleanup test files
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Dec 5, 2024
1 parent 41c11cc commit 4029caf
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/phpunit/tests/Traits/Version_Utils_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,9 @@ class Version_Utils_Tests extends WP_UnitTestCase {

protected $info_transient_key = 'wp_plugin_check_latest_version_info';

protected $php_check_transient_key = '';

public function set_up() {
parent::set_up();

$this->php_check_transient_key = 'php_check_' . md5( PHP_VERSION );

$php_check_data = array(
'recommended_version' => '7.4',
'minimum_version' => '7.2.24',
'is_supported' => true,
'is_secure' => true,
'is_acceptable' => true,
);

set_site_transient( $this->php_check_transient_key, $php_check_data );

$info_data = array(
'response' => 'upgrade',
'download' => 'https://downloads.wordpress.org/release/wordpress-6.7.1.zip',
Expand Down Expand Up @@ -72,7 +58,6 @@ public function test_wordpress_relative_major_version( $version, $steps, $new_ve

public function tear_down() {
delete_transient( $this->info_transient_key );
delete_site_transient( $this->php_check_transient_key );
parent::tear_down();
}

Expand Down

0 comments on commit 4029caf

Please sign in to comment.