Making WordPress.org


Ignore:
Timestamp:
04/29/2017 03:16:18 PM (7 years ago)
Author:
ocean90
Message:

Plugin Directory: Update API endpoint URLs in unit tests.

Props SergeyBiryukov.
Fixes #2766.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/api/svn-access.php

    r3297 r5434  
    88
    99    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' );
    1111        $data = json_decode( wp_remote_retrieve_body( $response ), true );
    1212
     
    1515
    1616    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(
    1818            'headers' => array(
    1919                'Authorization' => 'lol like this would be a real auth key'
Note: See TracChangeset for help on using the changeset viewer.