Changeset 51397 for trunk/tests/phpunit/tests/rest-api.php
- Timestamp:
- 07/10/2021 11:15:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api.php
r50156 r51397 238 238 ); 239 239 $endpoints = $GLOBALS['wp_rest_server']->get_routes(); 240 $this->assert False( isset( $endpoints['/test-empty-namespace'] ));240 $this->assertArrayNotHasKey( '/test-empty-namespace', $endpoints ); 241 241 } 242 242 … … 258 258 ); 259 259 $endpoints = $GLOBALS['wp_rest_server']->get_routes(); 260 $this->assert False( isset( $endpoints['/test-empty-route'] ));260 $this->assertArrayNotHasKey( '/test-empty-route', $endpoints ); 261 261 } 262 262 … … 952 952 953 953 $this->assertSame( array_keys( $preload_data ), array( '/wp/v2/types', 'OPTIONS' ) ); 954 $this->assert True( isset( $preload_data['OPTIONS']['/wp/v2/media'] ));954 $this->assertArrayHasKey( '/wp/v2/media', $preload_data['OPTIONS'] ); 955 955 956 956 $GLOBALS['wp_rest_server'] = $rest_server;
Note: See TracChangeset
for help on using the changeset viewer.