Make WordPress Core

Changeset 42106


Ignore:
Timestamp:
11/02/2017 01:25:57 AM (7 years ago)
Author:
westonruter
Message:

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

See #42090.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/ManageThemes.php

    r41619 r42106  
    123123        $response = json_decode( $this->_last_response, true );
    124124
     125        $theme = wp_get_theme( 'twentyten' );
    125126        $expected = array(
    126127            'success' => false,
     
    129130                'slug'         => 'twentyten',
    130131                'errorMessage' => 'The theme is at the latest version.',
    131                 'oldVersion'   => '2.3',
     132                'oldVersion'   => $theme->get( 'Version' ),
    132133                'newVersion'   => '',
    133134                'debug'        => array( 'The theme is at the latest version.' ),
Note: See TracChangeset for help on using the changeset viewer.