Skip to content

Commit 19959f2

Browse files
test(AppFramework): add mock controller methods for new PWC tests
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent 739f9d9 commit 19959f2

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

tests/lib/AppFramework/Middleware/Security/Mock/PasswordConfirmationMiddlewareController.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,35 @@ public function testAnnotation() {
3232
public function testAttribute() {
3333
}
3434

35+
// Non-strict — for backend capability and null-user tests
36+
#[PasswordConfirmationRequired]
37+
public function testLegacyBackendExempt() {}
38+
39+
#[PasswordConfirmationRequired]
40+
public function testIPasswordConfirmationBackendExempt() {}
41+
42+
#[PasswordConfirmationRequired]
43+
public function testIPasswordConfirmationBackendNotExempt() {}
44+
45+
#[PasswordConfirmationRequired]
46+
public function testNullUser() {}
47+
48+
// Strict — one controller method per strict-mode test
49+
#[PasswordConfirmationRequired(strict: true)]
50+
public function testStrictModeValidCredentials() {}
51+
52+
#[PasswordConfirmationRequired(strict: true)]
53+
public function testStrictModeMissingAuthHeader() {}
54+
55+
#[PasswordConfirmationRequired(strict: true)]
56+
public function testStrictModeMalformedBase64() {}
57+
58+
#[PasswordConfirmationRequired(strict: true)]
59+
public function testStrictModeWrongPassword() {}
60+
61+
#[PasswordConfirmationRequired(strict: true)]
62+
public function testStrictModeLegacyBackendExempt() {}
63+
3564
#[PasswordConfirmationRequired]
3665
public function testSSO() {
3766
}

0 commit comments

Comments
 (0)