From 34e8020740ff08f2a3ef4f5b820889e28206eb60 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 23 Sep 2023 02:45:45 +0200 Subject: [PATCH] Tests: make all classes either abstract or final --- tests/Unit/Admin/Options_Form_Generator_Test.php | 2 +- tests/Unit/Admin/Options_Inputs_Test.php | 2 +- tests/Unit/Admin/Options_Page_Test.php | 2 +- tests/Unit/Admin/Options_Test.php | 2 +- tests/Unit/Handlers/Check_Changes_Handler_Test.php | 2 +- tests/Unit/Permissions_Helper_Test.php | 2 +- tests/Unit/Post_Duplicator_Test.php | 2 +- tests/Unit/Post_Republisher_Test.php | 2 +- tests/Unit/Revisions_Migrator_Test.php | 2 +- tests/Unit/UI/Admin_Bar_Test.php | 2 +- tests/Unit/UI/Asset_Manager_Test.php | 2 +- tests/Unit/UI/Block_Editor_Test.php | 2 +- tests/Unit/UI/Bulk_Actions_Test.php | 2 +- tests/Unit/UI/Classic_Editor_Test.php | 2 +- tests/Unit/UI/Column_Test.php | 2 +- tests/Unit/UI/Link_Builder_Test.php | 2 +- tests/Unit/UI/Metabox_Test.php | 2 +- tests/Unit/UI/Post_States_Test.php | 2 +- tests/Unit/UI/Row_Actions_Test.php | 2 +- tests/Unit/Utils_Test.php | 2 +- tests/Unit/Watchers/Bulk_Actions_Watcher_Test.php | 2 +- tests/Unit/Watchers/Copied_Post_Watcher_Test.php | 2 +- tests/Unit/Watchers/Link_Actions_Watcher_Test.php | 2 +- tests/Unit/Watchers/Original_Post_Watcher_Test.php | 2 +- tests/Unit/Watchers/Republished_Post_Watcher_Test.php | 2 +- tests/WP/Post_Duplicator_Test.php | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/tests/Unit/Admin/Options_Form_Generator_Test.php b/tests/Unit/Admin/Options_Form_Generator_Test.php index 09d9504da..943677cd9 100644 --- a/tests/Unit/Admin/Options_Form_Generator_Test.php +++ b/tests/Unit/Admin/Options_Form_Generator_Test.php @@ -14,7 +14,7 @@ /** * Test the Options_Form_Generator class. */ -class Options_Form_Generator_Test extends TestCase { +final class Options_Form_Generator_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/Admin/Options_Inputs_Test.php b/tests/Unit/Admin/Options_Inputs_Test.php index 3f5baba43..622b7b7b4 100644 --- a/tests/Unit/Admin/Options_Inputs_Test.php +++ b/tests/Unit/Admin/Options_Inputs_Test.php @@ -10,7 +10,7 @@ /** * Test the Options_Inputs_Test class. */ -class Options_Inputs_Test extends TestCase { +final class Options_Inputs_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/Admin/Options_Page_Test.php b/tests/Unit/Admin/Options_Page_Test.php index 6ee477c5e..f111a042c 100644 --- a/tests/Unit/Admin/Options_Page_Test.php +++ b/tests/Unit/Admin/Options_Page_Test.php @@ -13,7 +13,7 @@ /** * Test the Options_Page class. */ -class Options_Page_Test extends TestCase { +final class Options_Page_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/Admin/Options_Test.php b/tests/Unit/Admin/Options_Test.php index 7ea9fae74..7135774dd 100644 --- a/tests/Unit/Admin/Options_Test.php +++ b/tests/Unit/Admin/Options_Test.php @@ -10,7 +10,7 @@ /** * Test the Options class. */ -class Options_Test extends TestCase { +final class Options_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/Handlers/Check_Changes_Handler_Test.php b/tests/Unit/Handlers/Check_Changes_Handler_Test.php index fe42597a0..85e89b4e7 100644 --- a/tests/Unit/Handlers/Check_Changes_Handler_Test.php +++ b/tests/Unit/Handlers/Check_Changes_Handler_Test.php @@ -12,7 +12,7 @@ /** * Test the Check_Changes_Handler class. */ -class Check_Changes_Handler_Test extends TestCase { +final class Check_Changes_Handler_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/Unit/Permissions_Helper_Test.php b/tests/Unit/Permissions_Helper_Test.php index 7cd78a87b..e687289fe 100644 --- a/tests/Unit/Permissions_Helper_Test.php +++ b/tests/Unit/Permissions_Helper_Test.php @@ -12,7 +12,7 @@ /** * Test the Permissions_Helper class. */ -class Permissions_Helper_Test extends TestCase { +final class Permissions_Helper_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/Post_Duplicator_Test.php b/tests/Unit/Post_Duplicator_Test.php index c9089f8f1..3cb6c6a24 100644 --- a/tests/Unit/Post_Duplicator_Test.php +++ b/tests/Unit/Post_Duplicator_Test.php @@ -11,7 +11,7 @@ /** * Test the Post_Duplicator class. */ -class Post_Duplicator_Test extends TestCase { +final class Post_Duplicator_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/Post_Republisher_Test.php b/tests/Unit/Post_Republisher_Test.php index b1c43d6da..1d985a57c 100644 --- a/tests/Unit/Post_Republisher_Test.php +++ b/tests/Unit/Post_Republisher_Test.php @@ -12,7 +12,7 @@ /** * Test the Post_Republisher class. */ -class Post_Republisher_Test extends TestCase { +final class Post_Republisher_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/Revisions_Migrator_Test.php b/tests/Unit/Revisions_Migrator_Test.php index 729d7228f..d1c0a4721 100644 --- a/tests/Unit/Revisions_Migrator_Test.php +++ b/tests/Unit/Revisions_Migrator_Test.php @@ -10,7 +10,7 @@ /** * Test the Revisions_Migrator class. */ -class Revisions_Migrator_Test extends TestCase { +final class Revisions_Migrator_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/UI/Admin_Bar_Test.php b/tests/Unit/UI/Admin_Bar_Test.php index 74a649265..bb31aa123 100644 --- a/tests/Unit/UI/Admin_Bar_Test.php +++ b/tests/Unit/UI/Admin_Bar_Test.php @@ -17,7 +17,7 @@ /** * Test the Admin_Bar class. */ -class Admin_Bar_Test extends TestCase { +final class Admin_Bar_Test extends TestCase { /** * Holds the object to create the action link to duplicate. diff --git a/tests/Unit/UI/Asset_Manager_Test.php b/tests/Unit/UI/Asset_Manager_Test.php index ccafb8ddf..d83179e89 100644 --- a/tests/Unit/UI/Asset_Manager_Test.php +++ b/tests/Unit/UI/Asset_Manager_Test.php @@ -10,7 +10,7 @@ /** * Test the Asset_Manager class. */ -class Asset_Manager_Test extends TestCase { +final class Asset_Manager_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/UI/Block_Editor_Test.php b/tests/Unit/UI/Block_Editor_Test.php index 2929e4afb..2616af237 100644 --- a/tests/Unit/UI/Block_Editor_Test.php +++ b/tests/Unit/UI/Block_Editor_Test.php @@ -14,7 +14,7 @@ /** * Test the Block_Editor class. */ -class Block_Editor_Test extends TestCase { +final class Block_Editor_Test extends TestCase { /** * Holds the object to create the action link to duplicate. diff --git a/tests/Unit/UI/Bulk_Actions_Test.php b/tests/Unit/UI/Bulk_Actions_Test.php index 008238dca..051518987 100644 --- a/tests/Unit/UI/Bulk_Actions_Test.php +++ b/tests/Unit/UI/Bulk_Actions_Test.php @@ -11,7 +11,7 @@ /** * Test the Bulk_Actions class. */ -class Bulk_Actions_Test extends TestCase { +final class Bulk_Actions_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/Unit/UI/Classic_Editor_Test.php b/tests/Unit/UI/Classic_Editor_Test.php index 507f397b8..11bf55494 100644 --- a/tests/Unit/UI/Classic_Editor_Test.php +++ b/tests/Unit/UI/Classic_Editor_Test.php @@ -14,7 +14,7 @@ /** * Test the Classic_Editor class. */ -class Classic_Editor_Test extends TestCase { +final class Classic_Editor_Test extends TestCase { /** * Holds the object to create the action link to duplicate. diff --git a/tests/Unit/UI/Column_Test.php b/tests/Unit/UI/Column_Test.php index 71e765a18..c987488c8 100644 --- a/tests/Unit/UI/Column_Test.php +++ b/tests/Unit/UI/Column_Test.php @@ -12,7 +12,7 @@ /** * Test the Column class. */ -class Column_Test extends TestCase { +final class Column_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/Unit/UI/Link_Builder_Test.php b/tests/Unit/UI/Link_Builder_Test.php index 89e473b54..5e98b6052 100644 --- a/tests/Unit/UI/Link_Builder_Test.php +++ b/tests/Unit/UI/Link_Builder_Test.php @@ -11,7 +11,7 @@ /** * Test the Link_Builder class. */ -class Link_Builder_Test extends TestCase { +final class Link_Builder_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/UI/Metabox_Test.php b/tests/Unit/UI/Metabox_Test.php index 91f1379f2..48c650603 100644 --- a/tests/Unit/UI/Metabox_Test.php +++ b/tests/Unit/UI/Metabox_Test.php @@ -12,7 +12,7 @@ /** * Test the Metabox class. */ -class Metabox_Test extends TestCase { +final class Metabox_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/Unit/UI/Post_States_Test.php b/tests/Unit/UI/Post_States_Test.php index 401202cbe..d90a83e6b 100644 --- a/tests/Unit/UI/Post_States_Test.php +++ b/tests/Unit/UI/Post_States_Test.php @@ -12,7 +12,7 @@ /** * Test the Post_States class. */ -class Post_States_Test extends TestCase { +final class Post_States_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/Unit/UI/Row_Actions_Test.php b/tests/Unit/UI/Row_Actions_Test.php index 5131e81e9..740183769 100644 --- a/tests/Unit/UI/Row_Actions_Test.php +++ b/tests/Unit/UI/Row_Actions_Test.php @@ -13,7 +13,7 @@ /** * Test the Row_Actions class. */ -class Row_Actions_Test extends TestCase { +final class Row_Actions_Test extends TestCase { /** * Holds the object to create the action link to duplicate. diff --git a/tests/Unit/Utils_Test.php b/tests/Unit/Utils_Test.php index a4da9c366..f65b432ba 100644 --- a/tests/Unit/Utils_Test.php +++ b/tests/Unit/Utils_Test.php @@ -7,7 +7,7 @@ /** * Test the Utils class. */ -class Utils_Test extends TestCase { +final class Utils_Test extends TestCase { /** * Tests the flatten_version function. diff --git a/tests/Unit/Watchers/Bulk_Actions_Watcher_Test.php b/tests/Unit/Watchers/Bulk_Actions_Watcher_Test.php index bb6a7a338..81259c868 100644 --- a/tests/Unit/Watchers/Bulk_Actions_Watcher_Test.php +++ b/tests/Unit/Watchers/Bulk_Actions_Watcher_Test.php @@ -9,7 +9,7 @@ /** * Test the Link_Actions_Watcher class. */ -class Bulk_Actions_Watcher_Test extends TestCase { +final class Bulk_Actions_Watcher_Test extends TestCase { /** * The instance. diff --git a/tests/Unit/Watchers/Copied_Post_Watcher_Test.php b/tests/Unit/Watchers/Copied_Post_Watcher_Test.php index e40e13958..8b4bc91ce 100644 --- a/tests/Unit/Watchers/Copied_Post_Watcher_Test.php +++ b/tests/Unit/Watchers/Copied_Post_Watcher_Test.php @@ -12,7 +12,7 @@ /** * Test the Copied_Post_Watcher class. */ -class Copied_Post_Watcher_Test extends TestCase { +final class Copied_Post_Watcher_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/Unit/Watchers/Link_Actions_Watcher_Test.php b/tests/Unit/Watchers/Link_Actions_Watcher_Test.php index a2eaf5458..ac4b5198f 100644 --- a/tests/Unit/Watchers/Link_Actions_Watcher_Test.php +++ b/tests/Unit/Watchers/Link_Actions_Watcher_Test.php @@ -11,7 +11,7 @@ /** * Test the Link_Actions_Watcher class. */ -class Link_Actions_Watcher_Test extends TestCase { +final class Link_Actions_Watcher_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/Unit/Watchers/Original_Post_Watcher_Test.php b/tests/Unit/Watchers/Original_Post_Watcher_Test.php index 4325f4ea5..6237a41da 100644 --- a/tests/Unit/Watchers/Original_Post_Watcher_Test.php +++ b/tests/Unit/Watchers/Original_Post_Watcher_Test.php @@ -12,7 +12,7 @@ /** * Test the Original_Post_Watcher class. */ -class Original_Post_Watcher_Test extends TestCase { +final class Original_Post_Watcher_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/Unit/Watchers/Republished_Post_Watcher_Test.php b/tests/Unit/Watchers/Republished_Post_Watcher_Test.php index f80760a7b..4907394f5 100644 --- a/tests/Unit/Watchers/Republished_Post_Watcher_Test.php +++ b/tests/Unit/Watchers/Republished_Post_Watcher_Test.php @@ -11,7 +11,7 @@ /** * Test the Republished_Post_Watcher class. */ -class Republished_Post_Watcher_Test extends TestCase { +final class Republished_Post_Watcher_Test extends TestCase { /** * Holds the permissions helper. diff --git a/tests/WP/Post_Duplicator_Test.php b/tests/WP/Post_Duplicator_Test.php index 9d08ae5fd..675097729 100644 --- a/tests/WP/Post_Duplicator_Test.php +++ b/tests/WP/Post_Duplicator_Test.php @@ -10,7 +10,7 @@ * * @coversDefaultClass \Yoast\WP\Duplicate_Post\Post_Duplicator */ -class Post_Duplicator_Test extends TestCase { +final class Post_Duplicator_Test extends TestCase { /** * Instance of the Post_Duplicator class.