Changeset 55116
- Timestamp:
- 01/23/2023 12:10:28 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api.php
r54339 r55116 844 844 * @dataProvider jsonp_callback_provider 845 845 */ 846 public function test_jsonp_callback_check( $callback, $ valid ) {847 $this->assertSame( $ valid, wp_check_jsonp_callback( $callback ) );846 public function test_jsonp_callback_check( $callback, $expected ) { 847 $this->assertSame( $expected, wp_check_jsonp_callback( $callback ) ); 848 848 } 849 849 … … 876 876 * @dataProvider rest_date_provider 877 877 */ 878 public function test_rest_parse_date( $ string, $value) {879 $this->assertEquals( $ value, rest_parse_date( $string) );878 public function test_rest_parse_date( $date, $expected ) { 879 $this->assertEquals( $expected, rest_parse_date( $date ) ); 880 880 } 881 881 … … 908 908 * @dataProvider rest_date_force_utc_provider 909 909 */ 910 public function test_rest_parse_date_force_utc( $ string, $value) {911 $this->assertSame( $ value, rest_parse_date( $string, true ) );910 public function test_rest_parse_date_force_utc( $date, $expected ) { 911 $this->assertSame( $expected, rest_parse_date( $date, true ) ); 912 912 } 913 913
Note: See TracChangeset
for help on using the changeset viewer.