Skip to content

Commit 9bbecdd

Browse files
author
Sasha Anastasi
committed
make test data provider methods static
1 parent 92831dc commit 9bbecdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

factor/email/tests/factor_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class email_factor_test extends \core_phpunit\testcase {
2929
* Provides to test_generate_email_ip_address_location test.
3030
* @return array
3131
*/
32-
public function generate_email_ip_address_location_provider(): array {
32+
public static function generate_email_ip_address_location_provider(): array {
3333
return [
3434
'real ip v4' => [
3535
// Note - this is the same IP address used by core_iplookup_geoplugin_testcase.

factor/token/tests/factor_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function test_calculate_expiry_time_for_overnight_expiry_with_an_hour_exp
261261
* Increments by 30 minutes to cover half hour and hour cases.
262262
* Starting timestamp: 2022-01-15 07:30:00 Australia/Melbourne time.
263263
*/
264-
public function timestamp_provider() {
264+
public static function timestamp_provider() {
265265
$starttimestamp = 1642192200;
266266
foreach (range(0, 23) as $i) {
267267
$timestamps[] = [$starttimestamp + ($i * HOURSECS)];

0 commit comments

Comments
 (0)