Changeset 5434
- Timestamp:
- 04/29/2017 03:16:18 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/api
- Files:
-
- 2 edited
-
locale-banner.php (modified) (1 diff)
-
svn-access.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/api/locale-banner.php
r5008 r5434 14 14 */ 15 15 function test_locale_banner( $header, $expected_sites ) { 16 $response = wp_remote_post( 'https://wordpress.org/plugins -wp/wp-json/plugins/v1/locale-banner', [16 $response = wp_remote_post( 'https://wordpress.org/plugins/wp-json/plugins/v1/locale-banner', [ 17 17 'headers' => [ 18 18 'Accept-Language' => $header, -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/api/svn-access.php
r3297 r5434 8 8 9 9 function test_permission_denied() { 10 $response = wp_remote_get( 'https://wordpress.org/plugins -wp/wp-json/plugins/v1/svn-access' );10 $response = wp_remote_get( 'https://wordpress.org/plugins/wp-json/plugins/v1/svn-access' ); 11 11 $data = json_decode( wp_remote_retrieve_body( $response ), true ); 12 12 … … 15 15 16 16 function test_permission_denied_with_bad_authorization() { 17 $response = wp_remote_get( 'https://wordpress.org/plugins -wp/wp-json/plugins/v1/svn-access', array(17 $response = wp_remote_get( 'https://wordpress.org/plugins/wp-json/plugins/v1/svn-access', array( 18 18 'headers' => array( 19 19 'Authorization' => 'lol like this would be a real auth key'
Note: See TracChangeset
for help on using the changeset viewer.