From 0a89b76d3965f01b7b9f45f456929aab739fb8b1 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Fri, 8 Dec 2023 15:14:44 -0700 Subject: [PATCH] use the version stored in wp-latest.json --- tests/phpunit/test-pantheon-updates.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/test-pantheon-updates.php b/tests/phpunit/test-pantheon-updates.php index 229cde0..bf23fe0 100644 --- a/tests/phpunit/test-pantheon-updates.php +++ b/tests/phpunit/test-pantheon-updates.php @@ -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 ); } /**