Tests: Rename classes in phpunit/tests/formatting/ per the naming conventions.

https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization

Follow-up to [47780], [48911], [49327], [50291], [50292], [50342], [50452], [50453], [50456], [50967], [50968], [50969], [51491], [51492], [51493].

See #53363.

git-svn-id: https://develop.svn.wordpress.org/trunk@51623 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-08-16 21:33:54 +00:00
parent 18bda14e1e
commit 4d2762ed93
57 changed files with 25 additions and 25 deletions

View File

@ -4,7 +4,7 @@
* @group formatting
* @group emoji
*/
class Tests_Formatting_Smilies extends WP_UnitTestCase {
class Tests_Formatting_ConvertSmilies extends WP_UnitTestCase {
/**
* Basic Test Content DataProvider

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_Ent2NCR extends WP_UnitTestCase {
class Tests_Formatting_Ent2ncr extends WP_UnitTestCase {
/**
* @dataProvider entities
*/

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_JSEscape extends WP_UnitTestCase {
class Tests_Formatting_EscJs extends WP_UnitTestCase {
function test_js_escape_simple() {
$out = esc_js( 'foo bar baz();' );
$this->assertSame( 'foo bar baz();', $out );

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_BlogInfo extends WP_UnitTestCase {
class Tests_Formatting_GetBloginfo extends WP_UnitTestCase {
/**
* @dataProvider locales

View File

@ -4,7 +4,7 @@
* @group formatting
* @group slashes
*/
class Tests_Formatting_StripSlashesDeep extends WP_UnitTestCase {
class Tests_Formatting_StripslashesDeep extends WP_UnitTestCase {
/**
* @ticket 18026
*/

View File

@ -3,8 +3,8 @@
/**
* @group formatting
*/
class Tests_Formatting_URLShorten extends WP_UnitTestCase {
function test_shorten_url() {
class Tests_Formatting_UrlShorten extends WP_UnitTestCase {
function test_url_shorten() {
$tests = array(
'wordpress\.org/about/philosophy' => 'wordpress\.org/about/philosophy', // No longer strips slashes.
'wordpress.org/about/philosophy' => 'wordpress.org/about/philosophy',

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_Autop extends WP_UnitTestCase {
class Tests_Formatting_wpAutop extends WP_UnitTestCase {
/**
* @ticket 11008

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_WP_Basename extends WP_UnitTestCase {
class Tests_Formatting_wpBasename extends WP_UnitTestCase {
function test_wp_basename_unix() {
$this->assertSame(

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_HtmlExcerpt extends WP_UnitTestCase {
class Tests_Formatting_wpHtmlExcerpt extends WP_UnitTestCase {
function test_simple() {
$this->assertSame( 'Baba', wp_html_excerpt( 'Baba told me not to come', 4 ) );
}

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_WpHtmlSplit extends WP_UnitTestCase {
class Tests_Formatting_wpHtmlSplit extends WP_UnitTestCase {
/**
* Basic functionality goes here.

View File

@ -4,7 +4,7 @@
* @group formatting
* @expectedDeprecated wp_htmledit_pre
*/
class Tests_Formatting_WpHtmlEditPre extends WP_UnitTestCase {
class Tests_Formatting_wpHtmleditPre extends WP_UnitTestCase {
function _charset_iso_8859_1() {
return 'iso-8859-1';

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Test_WP_ISO_Descrambler extends WP_UnitTestCase {
class Tests_Formatting_wpIsoDescrambler extends WP_UnitTestCase {
/*
* Decodes text in RFC2047 "Q"-encoding, e.g.
* =?iso-8859-1?q?this=20is=20some=20text?=

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_WPMakeLinkRelative extends WP_UnitTestCase {
class Tests_Formatting_wpMakeLinkRelative extends WP_UnitTestCase {
public function test_wp_make_link_relative_with_http_scheme() {
$link = 'http://example.com/this-is-a-test-http-url/';

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Rel_No_Follow extends WP_UnitTestCase {
class Tests_Formatting_wpRelNofollow extends WP_UnitTestCase {
/**
* @ticket 9959

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Rel_Ugc extends WP_UnitTestCase {
class Tests_Formatting_wpRelUgc extends WP_UnitTestCase {
/**
* @ticket 48022

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_WpReplaceInTags extends WP_UnitTestCase {
class Tests_Formatting_wpReplaceInHtmlTags extends WP_UnitTestCase {
/**
* Check for expected behavior of new function wp_replace_in_html_tags().
*

View File

@ -4,7 +4,7 @@
* @group formatting
* @expectedDeprecated wp_richedit_pre
*/
class Tests_Formatting_WpRichEditPre extends WP_UnitTestCase {
class Tests_Formatting_wpRicheditPre extends WP_UnitTestCase {
function _charset_iso_8859_1() {
return 'iso-8859-1';

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_WPSlash extends WP_UnitTestCase {
class Tests_Formatting_wpSlash extends WP_UnitTestCase {
/**
* @ticket 42195

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_WPSpecialchars extends WP_UnitTestCase {
class Tests_Formatting_wpSpecialchars extends WP_UnitTestCase {
function test_wp_specialchars_basics() {
$html = '&<hello world>';
$this->assertSame( $html, _wp_specialchars( $html ) );

View File

@ -4,7 +4,7 @@
*
* @group formatting
*/
class Tests_Formatting_WPStripAllTags extends WP_UnitTestCase {
class Tests_Formatting_wpStripAllTags extends WP_UnitTestCase {
function test_wp_strip_all_tags() {

View File

@ -4,7 +4,7 @@
* @group formatting
* @ticket 43187
*/
class Tests_Targeted_Link_Rel extends WP_UnitTestCase {
class Tests_Formatting_wpTargetedLinkRel extends WP_UnitTestCase {
public function test_add_to_links_with_target_blank() {
$content = '<p>Links: <a href="/" target="_blank">No rel</a></p>';

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_WPTexturize extends WP_UnitTestCase {
class Tests_Formatting_wpTexturize extends WP_UnitTestCase {
function test_dashes() {
$this->assertSame( 'Hey &#8212; boo?', wptexturize( 'Hey -- boo?' ) );
$this->assertSame( '<a href="http://xx--xx">Hey &#8212; boo?</a>', wptexturize( '<a href="http://xx--xx">Hey -- boo?</a>' ) );

View File

@ -4,7 +4,7 @@
* @group formatting
* @covers ::wp_trim_excerpt
*/
class Tests_Formatting_WpTrimExcerpt extends WP_UnitTestCase {
class Tests_Formatting_wpTrimExcerpt extends WP_UnitTestCase {
/**
* @ticket 25349
*/

View File

@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_Formatting_WPTrimWords extends WP_UnitTestCase {
class Tests_Formatting_wpTrimWords extends WP_UnitTestCase {
/**
* Long Dummy Text.