- Timestamp:
- 07/27/2017 07:03:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php
r39191 r41176 112 112 public function test_create_item() { 113 113 /** Taxonomies can't be created **/ 114 $request = new WP_REST_Request( 'POST', '/wp/v2/taxonomies' ); 115 $response = $this->server->dispatch( $request ); 116 $this->assertEquals( 404, $response->get_status() ); 114 117 } 115 118 116 119 public function test_update_item() { 117 120 /** Taxonomies can't be updated **/ 121 $request = new WP_REST_Request( 'POST', '/wp/v2/taxonomies/category' ); 122 $response = $this->server->dispatch( $request ); 123 $this->assertEquals( 404, $response->get_status() ); 118 124 } 119 125 120 126 public function test_delete_item() { 121 127 /** Taxonomies can't be deleted **/ 128 $request = new WP_REST_Request( 'DELETE', '/wp/v2/taxonomies/category' ); 129 $response = $this->server->dispatch( $request ); 130 $this->assertEquals( 404, $response->get_status() ); 122 131 } 123 132
Note: See TracChangeset
for help on using the changeset viewer.