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:
parent
ec2b0be9a6
commit
d6aece2a33
|
@ -122,13 +122,14 @@ class Tests_Ajax_Manage_Themes extends WP_Ajax_UnitTestCase {
|
||||||
// Get the response.
|
// Get the response.
|
||||||
$response = json_decode( $this->_last_response, true );
|
$response = json_decode( $this->_last_response, true );
|
||||||
|
|
||||||
|
$theme = wp_get_theme( 'twentyten' );
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'success' => false,
|
'success' => false,
|
||||||
'data' => array(
|
'data' => array(
|
||||||
'update' => 'theme',
|
'update' => 'theme',
|
||||||
'slug' => 'twentyten',
|
'slug' => 'twentyten',
|
||||||
'errorMessage' => 'The theme is at the latest version.',
|
'errorMessage' => 'The theme is at the latest version.',
|
||||||
'oldVersion' => '2.3',
|
'oldVersion' => $theme->get( 'Version' ),
|
||||||
'newVersion' => '',
|
'newVersion' => '',
|
||||||
'debug' => array( 'The theme is at the latest version.' ),
|
'debug' => array( 'The theme is at the latest version.' ),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue