Bundled Themes: Fix fragile `update-theme` phpunit test which broke after version updates in [42105].

See #42090.


git-svn-id: https://develop.svn.wordpress.org/trunk@42106 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-11-02 01:25:57 +00:00
parent ec2b0be9a6
commit d6aece2a33
1 changed files with 2 additions and 1 deletions

View File

@ -122,13 +122,14 @@ class Tests_Ajax_Manage_Themes extends WP_Ajax_UnitTestCase {
// Get the response.
$response = json_decode( $this->_last_response, true );
$theme = wp_get_theme( 'twentyten' );
$expected = array(
'success' => false,
'data' => array(
'update' => 'theme',
'slug' => 'twentyten',
'errorMessage' => 'The theme is at the latest version.',
'oldVersion' => '2.3',
'oldVersion' => $theme->get( 'Version' ),
'newVersion' => '',
'debug' => array( 'The theme is at the latest version.' ),
),