Changeset 54339 for trunk/tests/phpunit/tests/rest-api.php
- Timestamp:
- 09/27/2022 08:12:00 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api.php
r53217 r54339 2519 2519 ); 2520 2520 } 2521 2522 /** 2523 * @ticket 51986 2524 */ 2525 public function test_route_args_is_array_of_arrays() { 2526 $this->setExpectedIncorrectUsage( 'register_rest_route' ); 2527 2528 $registered = register_rest_route( 2529 'my-ns/v1', 2530 '/my-route', 2531 array( 2532 'callback' => '__return_true', 2533 'permission_callback' => '__return_true', 2534 'args' => array( 'pattern' ), 2535 ) 2536 ); 2537 2538 $this->assertTrue( $registered ); 2539 } 2521 2540 }
Note: See TracChangeset
for help on using the changeset viewer.