- Timestamp:
- 07/11/2021 12:41:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php
r51335 r51403 74 74 75 75 $this->assertIsArray( $routes, '`get_routes` should return an array.' ); 76 $this->assert True( ! empty( $routes ), 'Routes should not be empty.' );76 $this->assertNotEmpty( $routes, 'Routes should not be empty.' ); 77 77 78 78 $routes = array_filter( array_keys( $routes ), array( $this, 'is_builtin_route' ) ); … … 473 473 "HTTP $status from $route[route]: " . json_encode( $data ) 474 474 ); 475 $this->assert True( ! empty( $data ), $route['name'] . ' route should return data.' );475 $this->assertNotEmpty( $data, $route['name'] . ' route should return data.' ); 476 476 477 477 $fixture = $this->normalize_fixture( $data, $route['name'] );
Note: See TracChangeset
for help on using the changeset viewer.