Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the version stored in wp-latest.json
Browse files Browse the repository at this point in the history
jazzsequence committed Dec 8, 2023
1 parent 4a72c66 commit 0a89b76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/phpunit/test-pantheon-updates.php
Original file line number Diff line number Diff line change
@@ -64,9 +64,10 @@ public function test_pantheon_hide_update_nag() {
public function test_pantheon_get_current_wordpress_version() {
// Run the function.
$result = _pantheon_get_current_wordpress_version();
$current_version = self::get_latest_wp_version_from_file();

// Check that the returned version is correct. This value needs to be changed when the WordPress version is updated.
$this->assertEquals( '6.4.1', $result );
$this->assertEquals( $current_version, $result );
}

/**

0 comments on commit 0a89b76

Please sign in to comment.