Skip to content

Commit

Permalink
suggested rename
Browse files Browse the repository at this point in the history
  • Loading branch information
daveagp committed Jun 16, 2024
1 parent e46b6ac commit a8c9ad2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<?php

/**
* Tests for wp_url_encode_ending_period()
* Tests for _encode_query_arg_ending_period()
*
* @group functions.php
* @covers ::wp_url_encode_ending_period
* @covers ::_encode_query_arg_ending_period
*/
class Tests_Functions_WpUrlEncodeEndingPeriod extends WP_UnitTestCase {

/**
* @dataProvider data_wp_url_encode_ending_period
* @dataProvider data__encode_query_arg_ending_period
*
* @ticket 42957
*
* @param string $url URL to test.
* @param string $expected Expected result.
*/
public function test_wp_url_encode_ending_period( $url, $expected ) {
$this->assertSame( $expected, wp_url_encode_ending_period( $url ) );
public function test__encode_query_arg_ending_period( $url, $expected ) {
$this->assertSame( $expected, _encode_query_arg_ending_period( $url ) );
}

/**
* Data provider.
*
* @return array
*/
public function data_wp_url_encode_ending_period() {
public function data__encode_query_arg_ending_period() {
return array(
'empty string' => array(
'input' => '',
Expand Down

0 comments on commit a8c9ad2

Please sign in to comment.