Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"require": {
"php": ">=8.1",
"composer/installers": "~1.0"
"composer/installers": "^1.0 || ^2.0"
},
"extra": {
"display-name": "Team Security Measures",
Expand Down
30 changes: 14 additions & 16 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
cacheResult="false"
bootstrap="../../../../tests/bootstrap.php"
>
<coverage>
<include>
<directory suffix=".php">./</directory>
</include>
<exclude>
<directory suffix=".php">./language/</directory>
<directory suffix=".php">./migrations/</directory>
<directory suffix=".php">./tests/</directory>
</exclude>
</coverage>
backupStaticProperties="false">
<testsuites>
<testsuite name="Extension Test Suite">
<directory suffix="_test.php">./tests</directory>
Expand All @@ -31,4 +17,16 @@
<directory suffix="_test.php">./tests/functional/</directory>
</testsuite>
</testsuites>
<source restrictDeprecations="true"
restrictNotices="true"
restrictWarnings="true">
<include>
<directory suffix=".php">./</directory>
</include>
<exclude>
<directory suffix=".php">./language/</directory>
<directory suffix=".php">./migrations/</directory>
<directory suffix=".php">./tests/</directory>
</exclude>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion tests/event/delete_log_security_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion tests/event/email_change_notification_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/event/failed_logins_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))),
Expand Down
2 changes: 1 addition & 1 deletion tests/event/load_language_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/event/login_notification_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/event/team_passwords_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',),
Expand Down