diff --git a/composer.json b/composer.json index a437012..420bc13 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ ], "require": { "php": ">=8.1", - "composer/installers": "~1.0" + "composer/installers": "^1.0 || ^2.0" }, "extra": { "display-name": "Team Security Measures", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index cd8d13a..6f6f695 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,27 +1,13 @@ - - - ./ - - - ./language/ - ./migrations/ - ./tests/ - - + backupStaticProperties="false"> ./tests @@ -31,4 +17,16 @@ ./tests/functional/ + + + ./ + + + ./language/ + ./migrations/ + ./tests/ + + diff --git a/tests/event/delete_log_security_test.php b/tests/event/delete_log_security_test.php index 1754f82..5600e5e 100644 --- a/tests/event/delete_log_security_test.php +++ b/tests/event/delete_log_security_test.php @@ -17,7 +17,7 @@ class delete_log_security_test extends listener_base * * @return array Array of test data */ - public function delete_logs_security_data() + public static function delete_logs_security_data() { return [ ['admin', LOG_ADMIN, [], false], diff --git a/tests/event/email_change_notification_test.php b/tests/event/email_change_notification_test.php index 151823d..947a182 100644 --- a/tests/event/email_change_notification_test.php +++ b/tests/event/email_change_notification_test.php @@ -17,7 +17,7 @@ class email_change_notification_test extends listener_base * * @return array Array of test data */ - public function email_change_notification_data() + public static function email_change_notification_data() { return array( array( diff --git a/tests/event/failed_logins_test.php b/tests/event/failed_logins_test.php index 41d3ab9..591e165 100644 --- a/tests/event/failed_logins_test.php +++ b/tests/event/failed_logins_test.php @@ -17,7 +17,7 @@ class failed_logins_test extends listener_base * * @return array Array of test data */ - public function log_failed_login_attempts_data() + public static function log_failed_login_attempts_data() { return array( array(true, true, array('user_row' => array('user_id' => 2))), diff --git a/tests/event/load_language_test.php b/tests/event/load_language_test.php index d71e8a9..f121814 100644 --- a/tests/event/load_language_test.php +++ b/tests/event/load_language_test.php @@ -17,7 +17,7 @@ class load_language_test extends listener_base * * @return array Array of test data */ - public function load_language_on_setup_data() + public static function load_language_on_setup_data() { return array( array( diff --git a/tests/event/login_notification_test.php b/tests/event/login_notification_test.php index 1fc7784..d0a04ed 100644 --- a/tests/event/login_notification_test.php +++ b/tests/event/login_notification_test.php @@ -17,7 +17,7 @@ class login_notification_test extends listener_base * * @return array Array of test data */ - public function acp_login_notification_data() + public static function acp_login_notification_data() { return array( array(true, true, 'foo', '1:1:1', array( diff --git a/tests/event/team_passwords_test.php b/tests/event/team_passwords_test.php index 5764bb7..839b2cd 100644 --- a/tests/event/team_passwords_test.php +++ b/tests/event/team_passwords_test.php @@ -17,7 +17,7 @@ class team_passwords_test extends listener_base * * @return array Array of test data */ - public function set_team_password_configs_data() + public static function set_team_password_configs_data() { return array( array('core.acp_users_overview_before', 'reg_details', array(), true, true, 30, 'PASS_TYPE_SYMBOL',),