WordPress.org

Make WordPress Core

Ticket #53363: 53363-04-fix-incorrectly-named-test-class.patch

File 53363-04-fix-incorrectly-named-test-class.patch, 992 bytes (added by jrf, 4 months ago)

A concrete test class should be suffixed with Test, not UnitTestCase(s)

  • tests/phpunit/tests/filesystem/findFolder.php

    From 7a1c3bdbdd9ce9890fb21e624c1d6ab78c0155d4 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 20 Jul 2021 16:05:59 +0200
    Subject: [PATCH] QA: fix incorrectly named test class
    
    Concrete test classes should be suffixed with `Test`, not `UnitTestCase(s)`.
    ---
     tests/phpunit/tests/filesystem/findFolder.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/tests/phpunit/tests/filesystem/findFolder.php b/tests/phpunit/tests/filesystem/findFolder.php
    index 3b517531ed..6ada55caf8 100644
    a b require_once __DIR__ . '/base.php'; 
    66 * @group filesystem
    77 * @group wp-filesystem
    88 */
    9 class WP_Filesystem_find_folder_UnitTestCases extends WP_Filesystem_UnitTestCase {
     9class WP_Filesystem_Find_Folder_Test extends WP_Filesystem_UnitTestCase {
    1010
    1111        function test_ftp_has_root_access() {
    1212                global $wp_filesystem;