- Timestamp:
- 05/02/2024 04:01:29 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestTemplatesController.php
r57919 r58079 911 911 912 912 /** 913 * @ticket 60909 914 * @covers WP_REST_Templates_Controller::get_template_fallback 915 */ 916 public function test_get_template_fallback_not_found() { 917 wp_set_current_user( self::$admin_id ); 918 $request = new WP_REST_Request( 'GET', '/wp/v2/templates/lookup' ); 919 $request->set_param( 'slug', 'not-found' ); 920 $response = rest_get_server()->dispatch( $request ); 921 $data = $response->get_data(); 922 $this->assertEquals( new stdClass(), $data, 'Response should be an empty object when a fallback template is not found.' ); 923 } 924 925 /** 913 926 * @ticket 57851 914 927 *
Note: See TracChangeset
for help on using the changeset viewer.