Skip to content

Commit

Permalink
Tests: make all classes either abstract or final
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Dec 16, 2023
1 parent 5c054ca commit 34e8020
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/Admin/Options_Form_Generator_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Admin/Options_Inputs_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Admin/Options_Page_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Test the Options_Page class.
*/
class Options_Page_Test extends TestCase {
final class Options_Page_Test extends TestCase {

/**
* The instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Admin/Options_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Test the Options class.
*/
class Options_Test extends TestCase {
final class Options_Test extends TestCase {

/**
* The instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Handlers/Check_Changes_Handler_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Permissions_Helper_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Test the Permissions_Helper class.
*/
class Permissions_Helper_Test extends TestCase {
final class Permissions_Helper_Test extends TestCase {

/**
* The instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Post_Duplicator_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Test the Post_Duplicator class.
*/
class Post_Duplicator_Test extends TestCase {
final class Post_Duplicator_Test extends TestCase {

/**
* The instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Post_Republisher_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Test the Post_Republisher class.
*/
class Post_Republisher_Test extends TestCase {
final class Post_Republisher_Test extends TestCase {

/**
* The instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Revisions_Migrator_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Test the Revisions_Migrator class.
*/
class Revisions_Migrator_Test extends TestCase {
final class Revisions_Migrator_Test extends TestCase {

/**
* The instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Admin_Bar_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Asset_Manager_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Test the Asset_Manager class.
*/
class Asset_Manager_Test extends TestCase {
final class Asset_Manager_Test extends TestCase {

/**
* The instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Block_Editor_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Bulk_Actions_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Classic_Editor_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Column_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Test the Column class.
*/
class Column_Test extends TestCase {
final class Column_Test extends TestCase {

/**
* Holds the permissions helper.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Link_Builder_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Test the Link_Builder class.
*/
class Link_Builder_Test extends TestCase {
final class Link_Builder_Test extends TestCase {

/**
* The instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Metabox_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Test the Metabox class.
*/
class Metabox_Test extends TestCase {
final class Metabox_Test extends TestCase {

/**
* Holds the permissions helper.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Post_States_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UI/Row_Actions_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Utils_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Test the Utils class.
*/
class Utils_Test extends TestCase {
final class Utils_Test extends TestCase {

/**
* Tests the flatten_version function.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Watchers/Bulk_Actions_Watcher_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Watchers/Copied_Post_Watcher_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Watchers/Link_Actions_Watcher_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Watchers/Original_Post_Watcher_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Watchers/Republished_Post_Watcher_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/WP/Post_Duplicator_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 34e8020

Please sign in to comment.