- Timestamp:
- 06/27/2023 05:34:12 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestTemplatesController.php
r55992 r56051 838 838 $response = rest_get_server()->dispatch( $request ); 839 839 $this->assertSame( 'page', $response->get_data()['slug'], 'Should fallback to `page.html`.' ); 840 // Should fallback to `index.html`. 841 $request->set_param( 'slug', 'author' ); 842 $request->set_param( 'ignore_empty', true ); 843 $request->set_param( 'template_prefix', 'tag' ); 844 $request->set_param( 'is_custom', false ); 845 $response = rest_get_server()->dispatch( $request ); 846 $this->assertSame( 'index', $response->get_data()['slug'], 'Should fallback to `index.html` when ignore_empty is `true`.' ); 840 847 } 841 848 }
Note: See TracChangeset
for help on using the changeset viewer.