- Timestamp:
- 03/19/2023 12:03:30 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r55457 r55562 2358 2358 } 2359 2359 2360 public function post_dates_provider() {2360 public function data_post_dates() { 2361 2361 $all_statuses = array( 2362 2362 'draft', … … 2429 2429 2430 2430 /** 2431 * @dataProvider post_dates_provider2431 * @dataProvider data_post_dates 2432 2432 */ 2433 2433 public function test_create_post_date( $status, $params, $results ) { … … 3478 3478 3479 3479 /** 3480 * @dataProvider post_dates_provider3480 * @dataProvider data_post_dates 3481 3481 */ 3482 3482 public function test_update_post_date( $status, $params, $results ) { … … 4033 4033 } 4034 4034 4035 public static function post_roundtrip_provider() { 4035 /** 4036 * @dataProvider data_post_roundtrip_as_author 4037 */ 4038 public function test_post_roundtrip_as_author( $raw, $expected ) { 4039 wp_set_current_user( self::$author_id ); 4040 4041 $this->assertFalse( current_user_can( 'unfiltered_html' ) ); 4042 $this->verify_post_roundtrip( $raw, $expected ); 4043 } 4044 4045 public static function data_post_roundtrip_as_author() { 4036 4046 return array( 4037 4047 array( … … 4128 4138 ), 4129 4139 ); 4130 }4131 4132 /**4133 * @dataProvider post_roundtrip_provider4134 */4135 public function test_post_roundtrip_as_author( $raw, $expected ) {4136 wp_set_current_user( self::$author_id );4137 4138 $this->assertFalse( current_user_can( 'unfiltered_html' ) );4139 $this->verify_post_roundtrip( $raw, $expected );4140 4140 } 4141 4141
Note: See TracChangeset
for help on using the changeset viewer.