WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2015 05:26:30 AM (4 years ago)
Author:
rmccue
Message:

REST API: Update tests for [35653]

See #34551.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/oembed/controller.php

    r35436 r35654  
    9595        $data     = $response->get_data();
    9696
    97         $this->assertEquals( 'rest_no_route', $data[0]['code'] );
     97        $this->assertEquals( 'rest_no_route', $data['code'] );
    9898    }
    9999
     
    104104        $data     = $response->get_data();
    105105
    106         $this->assertEquals( 'rest_missing_callback_param', $data[0]['code'] );
    107         $this->assertEquals( 'url', $data[0]['data']['params'][0] );
     106        $this->assertEquals( 'rest_missing_callback_param', $data['code'] );
     107        $this->assertEquals( 'url', $data['data']['params'][0] );
    108108    }
    109109
     
    115115        $data     = $response->get_data();
    116116
    117         $this->assertEquals( 'oembed_invalid_url', $data[0]['code'] );
     117        $this->assertEquals( 'oembed_invalid_url', $data['code'] );
    118118    }
    119119
Note: See TracChangeset for help on using the changeset viewer.