Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/phpunit/tests/admin/themeBodyClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @group admin
*/
class Tests_Admin_Theme_Body_Class extends WP_UnitTestCase {
class Tests_Admin_ThemeBodyClass extends WP_UnitTestCase {
protected static $admin_user;
protected $original_theme;

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/block-bindings/postMetaSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @group blocks
* @group block-bindings
*/
class Tests_Block_Bindings_Post_Meta_Source extends WP_UnitTestCase {
class Tests_BlockBindings_PostMetaSource extends WP_UnitTestCase {
protected static $post;
protected static $wp_meta_keys_saved;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @group blocks
* @group block-bindings
*/
class Tests_Blocks_GetBlockBindingsProcessor extends WP_UnitTestCase {
class Tests_BlockBindings_WpBlockGetBlockBindingsProcessor extends WP_UnitTestCase {

private static $get_block_bindings_processor_method;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @coversDefaultClass WP_Block_Processor
*/
class Tests_Blocks_BlockProcessor_BlockProcessing extends WP_UnitTestCase {
class Tests_BlockProcessor_WpBlockProcessorBlockProcessing extends WP_UnitTestCase {
public function test_get_breadcrumbs() {
$processor = new WP_Block_Processor( '<!-- wp:top --><!-- wp:inside /--><!-- /wp:top -->' );

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/block-processor/wpBlockProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @coversDefaultClass WP_Block_Processor
*/
class Tests_Blocks_BlockProcessor extends WP_UnitTestCase {
class Tests_BlockProcessor_WpBlockProcessor extends WP_UnitTestCase {
/**
* Verifies that no block delimiters are found in an empty string.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/block-supports/aria-label.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @covers ::wp_apply_aria_label_support
*/
class Tests_Block_Supports_Aria_Label extends WP_UnitTestCase {
class Tests_BlockSupports_AriaLabel extends WP_UnitTestCase {
/**
* @var string|null
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @group block-supports
*/
class WP_Block_Supports_Block_Style_Variations_Test extends WP_UnitTestCase {
class Tests_BlockSupports_BlockStyleVariations extends WP_UnitTestCase {
/**
* Theme root directory.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/block-supports/block-visibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers ::wp_render_block_visibility_support
*/
class Tests_Block_Supports_Block_Visibility extends WP_UnitTestCase {
class Tests_BlockSupports_BlockVisibility extends WP_UnitTestCase {
/**
* @var string|null
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @group block-templates
*/
class Tests_Block_Template_Utils extends WP_UnitTestCase {
class Tests_BlockTemplateUtils extends WP_UnitTestCase {

const TEST_THEME = 'block-theme';

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/block-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @group block-templates
*/
class Tests_Block_Template extends WP_UnitTestCase {
class Tests_BlockTemplate extends WP_UnitTestCase {
private static $post;

private static $template_canvas_path = ABSPATH . WPINC . '/template-canvas.php';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @group block-templates
* @covers ::get_template_hierarchy
*/
class Tests_Block_Templates_GetTemplate_Hierarchy extends WP_Block_Templates_UnitTestCase {
class Tests_BlockTemplates_GetTemplateHierarchy extends WP_Block_Templates_UnitTestCase {

public function set_up() {
parent::set_up();
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/blocks/getBlockAssetUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @group blocks
* @covers ::get_block_asset_url
*/
class Tests_Get_Block_Asset_Url extends WP_UnitTestCase {
class Tests_Blocks_GetBlockAssetUrl extends WP_UnitTestCase {
/**
* Original theme directory.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/blocks/renderCommentTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @group blocks
*/
class Tests_Blocks_RenderReusableCommentTemplate extends WP_UnitTestCase {
class Tests_Blocks_RenderCommentTemplate extends WP_UnitTestCase {

private static $custom_post;
private static $comment_ids;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/build-visual-html-tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @group testsuite
*/
class Tests_Build_Equivalent_HTML_Semantic_Tree extends WP_UnitTestCase {
class Tests_BuildVisualHtmlTree extends WP_UnitTestCase {
public function data_build_equivalent_html_semantic_tree() {
$block_markup = <<<END
<!-- wp:separator {"className":"is-style-default has-custom-classname","style":{"spacing":{"margin":{"top":"50px","bottom":"50px"}}},"backgroundColor":"accent-1"} -->
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/category/walkerCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @covers Walker_Category::start_el
*/
class Tests_Category_Walker_Category extends WP_UnitTestCase {
class Tests_Category_WalkerCategory extends WP_UnitTestCase {

/**
* @var \Walker_Category The instance of the walker.
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/customize/custom-css-setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @group customize
*/
class Test_WP_Customize_Custom_CSS_Setting extends WP_UnitTestCase {
class Tests_Customize_CustomCssSetting extends WP_UnitTestCase {

/**
* Instance of WP_Customize_Manager which is reset for each test.
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/customize/nav-menu-item-setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @group customize
*/
class Test_WP_Customize_Nav_Menu_Item_Setting extends WP_UnitTestCase {
class Tests_Customize_NavMenuItemSetting extends WP_UnitTestCase {

/**
* Instance of WP_Customize_Manager which is reset for each test.
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/customize/nav-menu-setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @group customize
*/
class Test_WP_Customize_Nav_Menu_Setting extends WP_UnitTestCase {
class Tests_Customize_NavMenuSetting extends WP_UnitTestCase {

/**
* Instance of WP_Customize_Manager which is reset for each test.
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/customize/nav-menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @group customize
*/
class Test_WP_Customize_Nav_Menus extends WP_UnitTestCase {
class Tests_Customize_NavMenus extends WP_UnitTestCase {

/**
* Instance of WP_Customize_Manager which is reset for each test.
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/customize/selective-refresh-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @group customize
* @group ajax
*/
class Test_WP_Customize_Selective_Refresh_Ajax extends WP_UnitTestCase {
class Tests_Customize_SelectiveRefreshAjax extends WP_UnitTestCase {

/**
* Manager.
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/customize/selective-refresh.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @group customize
*/
class Test_WP_Customize_Selective_Refresh extends WP_UnitTestCase {
class Tests_Customize_SelectiveRefresh extends WP_UnitTestCase {

/**
* Manager.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @group editor
*/
class WP_Classic_To_Block_Menu_Converter_Test extends WP_UnitTestCase {
class Tests_Editor_ClassicToBlockMenuConverter extends WP_UnitTestCase {

/**
* @ticket 58557
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/editor/navigation-fallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @group editor
*/
class WP_Navigation_Fallback_Test extends WP_UnitTestCase {
class Tests_Editor_NavigationFallback extends WP_UnitTestCase {

protected static $admin_user;
protected static $editor_user;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/filesystem/findFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @group file
* @group filesystem
*/
class WP_Filesystem_Find_Folder_Test extends WP_Filesystem_UnitTestCase {
class Tests_Filesystem_FindFolder extends WP_Filesystem_UnitTestCase {

public function test_ftp_has_root_access() {
global $wp_filesystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @covers WP_Font_Face::generate_and_print
*/
class Tests_Fonts_WPFontFace_GenerateAndPrint extends WP_UnitTestCase {
class Tests_Fonts_FontFace_WpFontFace_GenerateAndPrint extends WP_UnitTestCase {
use WP_Font_Face_Tests_Datasets;

public function test_should_not_generate_and_print_when_no_fonts() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @covers WP_Font_Face_Resolver::get_fonts_from_style_variations
*/
class Tests_Fonts_WPFontFaceResolver_GetFontsFromStyleVariations extends WP_Font_Face_UnitTestCase {
class Tests_Fonts_FontFace_WpFontFaceResolver_GetFontsFromStyleVariations extends WP_Font_Face_UnitTestCase {
const FONTS_THEME = 'fonts-block-theme';

public static function set_up_before_class() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @covers WP_Font_Face_Resolver::get_fonts_from_theme_json
*/
class Tests_Fonts_WPFontFaceResolver_GetFontsFromThemeJson extends WP_Font_Face_UnitTestCase {
class Tests_Fonts_FontFace_WpFontFaceResolver_GetFontsFromThemeJson extends WP_Font_Face_UnitTestCase {
const FONTS_THEME = 'fonts-block-theme';

public static function set_up_before_class() {
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/fonts/font-face/wpPrintFontFaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @covers wp_print_font_faces
*/
class Tests_Fonts_WpPrintFontFaces extends WP_Font_Face_UnitTestCase {
class Tests_Fonts_FontFace_WpPrintFontFaces extends WP_Font_Face_UnitTestCase {
const FONTS_THEME = 'fonts-block-theme';

public static function set_up_before_class() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @covers wp_print_font_faces_from_style_variations
*/
class Tests_Fonts_WpPrintFontFacesFromStyleVariations extends WP_Font_Face_UnitTestCase {
class Tests_Fonts_FontFace_WpPrintFontFacesFromStyleVariations extends WP_Font_Face_UnitTestCase {
const FONTS_THEME = 'fonts-block-theme';

public static function set_up_before_class() {
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/fonts/font-library/postTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @group fonts
* @group font-library
*/
class Tests_Fonts_Post_Types extends WP_UnitTestCase {
class Tests_Fonts_FontLibrary_PostTypes extends WP_UnitTestCase {
/**
* @ticket 41172
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers WP_Font_Collection::__construct
*/
class Tests_Fonts_WpFontCollection_Construct extends WP_UnitTestCase {
class Tests_Fonts_FontLibrary_WpFontCollection_Construct extends WP_UnitTestCase {

public function test_should_do_it_wrong_with_invalid_slug() {
$this->setExpectedIncorrectUsage( 'WP_Font_Collection::__construct' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers WP_Font_Library::get_font_collection
*/
class Tests_Fonts_WpFontLibrary_GetFontCollection extends WP_Font_Library_UnitTestCase {
class Tests_Fonts_FontLibrary_WpFontLibrary_GetFontCollection extends WP_Font_Library_UnitTestCase {

public function test_should_get_font_collection() {
$mock_collection_data = array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers WP_Font_Library::get_font_collections
*/
class Tests_Fonts_WpFontLibrary_GetFontCollections extends WP_Font_Library_UnitTestCase {
class Tests_Fonts_FontLibrary_WpFontLibrary_GetFontCollections extends WP_Font_Library_UnitTestCase {
public function test_should_get_an_empty_list() {
$font_collections = WP_Font_Library::get_instance()->get_font_collections();
$this->assertEmpty( $font_collections, 'Should return an empty array.' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers WP_Font_Library::register_font_collection
*/
class Tests_Fonts_WpFontLibrary_RegisterFontCollection extends WP_Font_Library_UnitTestCase {
class Tests_Fonts_FontLibrary_WpFontLibrary_RegisterFontCollection extends WP_Font_Library_UnitTestCase {
public function test_should_register_font_collection() {
$config = array(
'name' => 'My Collection',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers WP_Font_Library::unregister_font_collection
*/
class Tests_Fonts_WpFontLibrary_UnregisterFontCollection extends WP_Font_Library_UnitTestCase {
class Tests_Fonts_FontLibrary_WpFontLibrary_UnregisterFontCollection extends WP_Font_Library_UnitTestCase {

public function test_should_unregister_font_collection() {
$mock_collection_data = array(
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/fonts/font-library/wpFontsDir.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers ::wp_get_font_dir
*/
class Tests_Fonts_WpFontDir extends WP_UnitTestCase {
class Tests_Fonts_FontLibrary_WpFontsDir extends WP_UnitTestCase {
private static $dir_defaults;

public static function set_up_before_class() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @group formatting
*/
class Tests_DeprecatedUtf8EncodeDecodeTest extends WP_UnitTestCase {
class Tests_Formatting_DeprecatedUTFEncodeDecode extends WP_UnitTestCase {
/**
* Ensures that the fallback for {@see \utf8_encode()} maps the ISO-8859-1 characters properly.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/isNewDay.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @covers ::is_new_day
*/
class Tests_Functions_IsNewDate extends WP_UnitTestCase {
class Tests_Functions_IsNewDay extends WP_UnitTestCase {

/**
* @ticket 46627
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/html-api/wpHtmlProcessor-bookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @coversDefaultClass WP_HTML_Processor
*/
class Tests_HtmlApi_WpHtmlProcessor_Bookmark extends WP_UnitTestCase {
class Tests_HtmlApi_WpHtmlProcessorBookmark extends WP_UnitTestCase {
/**
* @dataProvider data_processor_constructors
*
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/html-api/wpHtmlProcessor-serialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @coversDefaultClass WP_HTML_Processor
*/
class Tests_HtmlApi_WpHtmlProcessor_Serialize extends WP_UnitTestCase {
class Tests_HtmlApi_WpHtmlProcessorSerialize extends WP_UnitTestCase {
/**
* Ensures that basic text is properly encoded when serialized.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @group html-api
* @group html-api-html5lib-tests
*/
class Tests_HtmlApi_Html5lib extends WP_UnitTestCase {
class Tests_HtmlApi_WpHtmlProcessorHtml5lib extends WP_UnitTestCase {
const TREE_INDENT = ' ';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @coversDefaultClass WP_HTML_Tag_Processor
*/
class Tests_HtmlApi_WpHtmlTagProcessor_Bookmark extends WP_UnitTestCase {
class Tests_HtmlApi_WpHtmlTagProcessorBookmark extends WP_UnitTestCase {

/**
* @ticket 56299
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @coversDefaultClass WP_HTML_Tag_Processor
*/
class Tests_HtmlApi_WpHtmlProcessor_Token_Scanning extends WP_UnitTestCase {
class Tests_HtmlApi_WpHtmlTagProcessorTokenScanning extends WP_UnitTestCase {
/**
* Ensures that scanning finishes in a complete form when the document is empty.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/https-detection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @group https-detection
*/
class Tests_HTTPS_Detection extends WP_UnitTestCase {
class Tests_HTTPSDetection extends WP_UnitTestCase {

private $last_request_url;

Expand Down
Loading
Loading