Skip to content

Commit da9388f

Browse files
committed
abbreviate
1 parent 630b1a3 commit da9388f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/functional/BumpLastLoginApiTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function testBumpLastLoginApi()
1616
$this->http_post(
1717
__DIR__ . "/../../webroot/lan/api/bump-last-login.php",
1818
[],
19-
query_parameters: ["uid" => $USER->uid],
19+
query_params: ["uid" => $USER->uid],
2020
bearer_token: "phpunit_api_key",
2121
);
2222
$new_timestamp_year = date("Y", $SQL->getUserLastLogin($USER->uid));

test/phpunit-bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ function assertNoWarningErrorMessages()
559559
function http_post(
560560
string $phpfile,
561561
array $post_data,
562-
array $query_parameters = [],
562+
array $query_params = [],
563563
bool $do_generate_csrf_token = true,
564564
bool $do_validate_messages = true,
565565
?string $bearer_token = null,
@@ -588,7 +588,7 @@ function http_post(
588588
$post_data["csrf_token"] = CSRFToken::generate();
589589
}
590590
$_POST = $post_data;
591-
$_GET = $query_parameters;
591+
$_GET = $query_params;
592592
ob_start();
593593
try {
594594
$post_did_redirect_or_die = false;

0 commit comments

Comments
 (0)