Coding Standards: Rename some files and classes in phpunit/tests/functions/
per the naming conventions.
https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization See #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@47780 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c860753778
commit
c395d6fcd9
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Validate that's badly named charsets always return the correct format for UTF-8 and ISO-8859-1
|
||||
* Validate that badly named charsets always return the correct format for UTF-8 and ISO-8859-1.
|
||||
*
|
||||
* @since 4.8.0
|
||||
*/
|
||||
|
||||
class Tests_Functions_canonical_charset extends WP_UnitTestCase {
|
||||
class Tests_Functions_CanonicalCharset extends WP_UnitTestCase {
|
||||
|
||||
public function test_utf_8_lower() {
|
||||
$this->assertEquals( 'UTF-8', _canonical_charset( 'utf-8' ) );
|
@ -6,7 +6,7 @@
|
||||
* @ticket 8497
|
||||
* @ticket 38101
|
||||
*/
|
||||
class Tests_Cleanup_Header_Comment extends WP_UnitTestCase {
|
||||
class Tests_Functions_CleanupHeaderComment extends WP_UnitTestCase {
|
||||
/**
|
||||
* Test cleanup header of header comment.
|
||||
*
|
@ -5,10 +5,10 @@
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Unit Tests
|
||||
* @since 3.5
|
||||
* @since 3.5.0
|
||||
* @group deprecated
|
||||
*/
|
||||
class Test_Functions_Deprecated extends WP_UnitTestCase {
|
||||
class Tests_Functions_Deprecated extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* List of functions that have been passed through _deprecated_function()
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_Functions_get_status_header_desc extends WP_UnitTestCase {
|
||||
class Tests_Functions_GetStatusHeaderDesc extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @dataProvider _status_strings
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_Functions_is_new_date extends WP_UnitTestCase {
|
||||
class Tests_Functions_IsNewDate extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 46627
|
||||
|
@ -6,7 +6,7 @@
|
||||
* @group functions.php
|
||||
* @ticket 42870
|
||||
*/
|
||||
class Tests_Functions_Is_Serialized_String extends WP_UnitTestCase {
|
||||
class Tests_Functions_IsSerializedString extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Data provider method for testing `is_serialized_string()`.
|
||||
|
@ -6,7 +6,7 @@
|
||||
* @group functions.php
|
||||
* @group i18n
|
||||
*/
|
||||
class Tests_Functions_Number_Format_I18n extends WP_UnitTestCase {
|
||||
class Tests_Functions_NumberFormatI18n extends WP_UnitTestCase {
|
||||
public function test_should_fall_back_to_number_format_when_wp_locale_is_not_set() {
|
||||
$locale = clone $GLOBALS['wp_locale'];
|
||||
$GLOBALS['wp_locale'] = null;
|
||||
|
@ -6,7 +6,7 @@
|
||||
* @group functions.php
|
||||
* @group plugins
|
||||
*/
|
||||
class Tests_Plugin_Basename extends WP_UnitTestCase {
|
||||
class Tests_Functions_PluginBasename extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @var array
|
||||
|
@ -6,7 +6,7 @@
|
||||
* @group functions.php
|
||||
* @ticket 36635
|
||||
*/
|
||||
class Tests_Functions_Size_Format extends WP_UnitTestCase {
|
||||
class Tests_Functions_SizeFormat extends WP_UnitTestCase {
|
||||
public function _data_size_format() {
|
||||
return array(
|
||||
array( array(), 0, false ),
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_Functions_Underscore_Return extends WP_UnitTestCase {
|
||||
class Tests_Functions_UnderscoreReturn extends WP_UnitTestCase {
|
||||
|
||||
public function test__return_true() {
|
||||
$this->assertTrue( __return_true() );
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @covers wp_array_slice_assoc
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_Functions_WpArraySliceAssoc extends WP_UnitTestCase {
|
||||
class Tests_Functions_wpArraySliceAssoc extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Test wp_array_slice_assoc().
|
||||
|
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_Functions_WP_Auth_Check extends WP_UnitTestCase {
|
||||
class Tests_Functions_wpAuthCheck extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Run with user not logged in.
|
||||
|
@ -7,7 +7,7 @@ $defaults = array(
|
||||
'echo' => 1, 'order' => 'DESC',
|
||||
);
|
||||
*/
|
||||
class Tests_Get_Archives extends WP_UnitTestCase {
|
||||
class Tests_Functions_wpGetArchives extends WP_UnitTestCase {
|
||||
protected static $post_ids;
|
||||
protected $month_url;
|
||||
protected $year_url;
|
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_wp_get_mime_types extends WP_UnitTestCase {
|
||||
class Tests_Functions_wpGetMimeTypes extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 47701
|
||||
|
@ -5,7 +5,7 @@
|
||||
*
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_Functions_ListFilter extends WP_UnitTestCase {
|
||||
class Tests_Functions_wpListFilter extends WP_UnitTestCase {
|
||||
var $object_list = array();
|
||||
var $array_list = array();
|
||||
|
@ -3,7 +3,8 @@
|
||||
/**
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_WP_List_Util extends WP_UnitTestCase {
|
||||
class Tests_Functions_wpListUtil extends WP_UnitTestCase {
|
||||
|
||||
public function data_test_wp_list_pluck() {
|
||||
return array(
|
||||
'arrays' => array(
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @group external-http
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_Functions_wp_remote_fopen extends WP_UnitTestCase {
|
||||
class Tests_Functions_wpRemoteFopen extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 48845
|
||||
|
@ -6,7 +6,7 @@
|
||||
* @covers ::wp_validate_boolean
|
||||
* @group functions.php
|
||||
*/
|
||||
class Tests_Functions_WpValidateBoolean extends WP_UnitTestCase {
|
||||
class Tests_Functions_wpValidateBoolean extends WP_UnitTestCase {
|
||||
/**
|
||||
* Provides test scenarios for all possible scenarios in wp_validate_boolean().
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user