Changeset 55130
- Timestamp:
- 01/24/2023 03:53:46 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/wpRefererField.php
r54855 r55130 31 31 32 32 /** 33 * Tests that the echoargument is respected.33 * Tests that the display argument is respected. 34 34 * 35 35 * @ticket 54106 36 36 * 37 * @dataProvider data_wp_referer_field_should_respect_ echo_arg37 * @dataProvider data_wp_referer_field_should_respect_display_arg 38 38 * 39 * @param mixed $ echoWhether to echo or return the referer field.39 * @param mixed $display Whether to echo or return the referer field. 40 40 */ 41 public function test_wp_referer_field_should_respect_ echo_arg( $echo) {42 $actual = $ echo? get_echo( 'wp_referer_field' ) : wp_referer_field( false );41 public function test_wp_referer_field_should_respect_display_arg( $display ) { 42 $actual = $display ? get_echo( 'wp_referer_field' ) : wp_referer_field( false ); 43 43 44 44 $this->assertSame( '<input type="hidden" name="_wp_http_referer" value="" />', $actual ); … … 46 46 47 47 /** 48 * Data provider for test_wp_referer_field_should_respect_ echo_arg().48 * Data provider for test_wp_referer_field_should_respect_display_arg(). 49 49 * 50 50 * @return array 51 51 */ 52 public function data_wp_referer_field_should_respect_ echo_arg() {52 public function data_wp_referer_field_should_respect_display_arg() { 53 53 return array( 54 54 'true' => array( true ),
Note: See TracChangeset
for help on using the changeset viewer.