Changeset 44234
- Timestamp:
- 12/16/2018 06:53:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r44225 r44234 1672 1672 1673 1673 $request->set_body( file_get_contents( $this->test_file ) ); 1674 $response = $this->server->dispatch( $request );1674 $response = rest_get_server()->dispatch( $request ); 1675 1675 $data = $response->get_data(); 1676 1676 $this->assertEquals( 201, $response->get_status() ); … … 1704 1704 $request = new WP_REST_Request( 'POST', '/wp/v2/media/' . $attachment_id ); 1705 1705 $request->set_param( 'title', 'My title is very cool' ); 1706 $response = $this->server->dispatch( $request );1706 $response = rest_get_server()->dispatch( $request ); 1707 1707 1708 1708 $this->assertSame( 1, self::$rest_insert_attachment_count );
Note: See TracChangeset
for help on using the changeset viewer.