Changeset 54723
- Timestamp:
- 10/30/2022 02:52:04 AM (3 years ago)
- Location:
- trunk/tests/phpunit/tests/ajax
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/wpAjaxUpdatePlugin.php
r54722 r54723 142 142 $_POST['slug'] = 'hello-dolly'; 143 143 144 // Prevent wp_update_plugins() from running. 145 wp_installing( true ); 146 144 147 // Make the request. 145 148 try { 146 // Prevent wp_update_plugins() from running.147 wp_installing( true );148 149 $this->_handleAjax( 'update-plugin' ); 149 wp_installing( false );150 150 } catch ( WPAjaxDieContinueException $e ) { 151 151 unset( $e ); 152 152 } 153 154 wp_installing( false ); 153 155 154 156 // Get the response. -
trunk/tests/phpunit/tests/ajax/wpAjaxUpdateTheme.php
r54722 r54723 113 113 $_POST['slug'] = 'twentyten'; 114 114 115 // Prevent wp_update_themes() from running. 116 wp_installing( true ); 117 115 118 // Make the request. 116 119 try { 117 118 // Prevent wp_update_themes() from running.119 wp_installing( true );120 120 $this->_handleAjax( 'update-theme' ); 121 wp_installing( false );122 123 121 } catch ( WPAjaxDieContinueException $e ) { 124 122 unset( $e ); 125 123 } 124 125 wp_installing( false ); 126 126 127 127 // Get the response.
Note: See TracChangeset
for help on using the changeset viewer.