Changeset 52390
- Timestamp:
- 12/19/2021 02:27:22 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-rest-controller.php
r51568 r52390 46 46 47 47 // Make sure path for rest_url has a leading slash for proper resolution. 48 $this->assertTrue( 0 === strpos( $path, '/' ), 'REST API URL should have a leading slash.' ); 48 if ( 0 !== strpos( $path, '/' ) ) { 49 $this->fail( 50 sprintf( 51 'REST API URL "%s" should have a leading slash.', 52 $path 53 ) 54 ); 55 } 49 56 50 57 return $url;
Note: See TracChangeset
for help on using the changeset viewer.