Skip to content

Commit d9d94e5

Browse files
datlechinpaulbalandan
authored andcommitted
wip
1 parent e62db7a commit d9d94e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/system/Security/SecurityTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ public function testGetPostedTokenReturnsNullForInvalidInputs(): void
359359
$method = $this->getPrivateMethodInvoker($this->createMockSecurity(), 'getPostedToken');
360360
$testCases = [
361361
'empty_post' => $this->createIncomingRequest(),
362-
'malicious_post' => $this->createIncomingRequest()->setGlobal('post', ['csrf_test_name' => ['malicious' => 'data']]),
362+
'invalid_post_data' => $this->createIncomingRequest()->setGlobal('post', ['csrf_test_name' => ['invalid' => 'data']]),
363363
'empty_header' => $this->createIncomingRequest()->setHeader('X-CSRF-TOKEN', ''),
364-
'malicious_json' => $this->createIncomingRequest()->setBody(json_encode(['csrf_test_name' => ['malicious' => 'data']])),
364+
'invalid_json_data' => $this->createIncomingRequest()->setBody(json_encode(['csrf_test_name' => ['invalid' => 'data']])),
365365
'invalid_json' => $this->createIncomingRequest()->setBody('{invalid json}'),
366366
'missing_token_in_body' => $this->createIncomingRequest()->setBody('other=value&another=test'),
367-
'malicious_form' => $this->createIncomingRequest()->setBody('csrf_test_name[]=malicious'),
367+
'invalid_form_data' => $this->createIncomingRequest()->setBody('csrf_test_name[]=invalid'),
368368
];
369369

370370
foreach ($testCases as $case => $request) {

0 commit comments

Comments
 (0)