Changeset 47122 for trunk/tests/phpunit/tests/ajax/UpdatePlugin.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/UpdatePlugin.php
r46586 r47122 1 1 <?php 2 2 /** 3 * Admin ajax functions to be tested3 * Admin Ajax functions to be tested. 4 4 */ 5 5 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' ); … … 23 23 $_POST['slug'] = 'foo'; 24 24 25 // Make the request 25 // Make the request. 26 26 try { 27 27 $this->_handleAjax( 'update-plugin' ); … … 49 49 $_POST['plugin'] = 'foo/bar.php'; 50 50 51 // Make the request 51 // Make the request. 52 52 try { 53 53 $this->_handleAjax( 'update-plugin' ); … … 76 76 $_POST['slug'] = 'foo'; 77 77 78 // Make the request 78 // Make the request. 79 79 try { 80 80 $this->_handleAjax( 'update-plugin' ); … … 107 107 $_POST['slug'] = 'foo'; 108 108 109 // Make the request 109 // Make the request. 110 110 try { 111 111 $this->_handleAjax( 'update-plugin' ); … … 138 138 $_POST['slug'] = 'hello-dolly'; 139 139 140 // Make the request 140 // Make the request. 141 141 try { 142 // Prevent wp_update_plugins() from running 142 // Prevent wp_update_plugins() from running. 143 143 wp_installing( true ); 144 144 $this->_handleAjax( 'update-plugin' );
Note: See TracChangeset
for help on using the changeset viewer.