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 f120555 commit 347a9e6
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/Assets_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @preserveGlobalState disabled
* @runTestsInSeparateProcesses
*/
class Assets_Test extends TestCase {
final class Assets_Test extends TestCase {

/**
* Test the init hook and determines whether the proper assets are loaded.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Configuration/Configuration_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @covers Yoast_ACF_Analysis_Configuration
*/
class Configuration_Test extends TestCase {
final class Configuration_Test extends TestCase {

/**
* Tests empty configurations.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Configuration/String_Store_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers \Yoast_ACF_Analysis_String_Store
*/
class String_Store_Test extends TestCase {
final class String_Store_Test extends TestCase {

/**
* Gets the blacklist string store.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Dependencies/Dependency_ACF_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @covers Yoast_ACF_Analysis_Dependency_ACF
*/
class Dependency_ACF_Test extends TestCase {
final class Dependency_ACF_Test extends TestCase {

/**
* Tests the situation where no ACF class exists.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Dependencies/Dependency_Yoast_SEO_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @runTestsInSeparateProcesses
*/
class Dependency_Yoast_SEO_Test extends TestCase {
final class Dependency_Yoast_SEO_Test extends TestCase {

/**
* Tests that requirements are not met when Yoast SEO can't be found.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Doubles/Failing_Dependency_Mock.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Class Failing_Dependency_Mock.
*/
class Failing_Dependency_Mock implements Yoast_ACF_Analysis_Dependency {
final class Failing_Dependency_Mock implements Yoast_ACF_Analysis_Dependency {

/**
* Checks if this dependency is met.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Doubles/Passing_Dependency_Mock.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Class Passing_Dependency_Mock.
*/
class Passing_Dependency_Mock implements Yoast_ACF_Analysis_Dependency {
final class Passing_Dependency_Mock implements Yoast_ACF_Analysis_Dependency {

/**
* Checks if this dependency is met.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Main_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Class Main_Test.
*/
class Main_Test extends TestCase {
final class Main_Test extends TestCase {

/**
* Tests invalid configurations.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Registry_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @covers Yoast_ACF_Analysis_Registry
*/
class Registry_Test extends TestCase {
final class Registry_Test extends TestCase {

/**
* Tests that the singleton instance is properly set and that every call to the registry, is the same instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Requirements_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Class Requirements_Test.
*/
class Requirements_Test extends TestCase {
final class Requirements_Test extends TestCase {

/**
* Sets up test fixtures.
Expand Down

0 comments on commit 347a9e6

Please sign in to comment.