Skip to content

Commit afdc068

Browse files
committed
Refactor Symfony test configurations and add badge support
Reorganized test configurations by splitting `config.yml` into `common.yml` and added Twig template support. Introduced Webauthn authentication mechanism with related classes, functional tests, and templates to enhance security. This commit also includes tests for authenticated access and successful login handling.
1 parent 6a560f4 commit afdc068

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/symfony/functional/Firewall/SecuredAreaTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,7 @@ public function aUserCannotBeRegisteredAsTheUserAlreadyExists(): void
150150
]);
151151

152152
//Then
153-
static::assertResponseIsSuccessful();
154-
static::assertSame('{"success":true}', $client->getResponse()->getContent());
155-
static::assertTrue($client->getRequest()->getSession()->has('_security_main'));
156-
157-
//And then
158-
$client->request(Request::METHOD_GET, '/admin');
159-
static::assertSame('["Hello admin"]', $client->getResponse()->getContent());
160-
static::assertResponseIsSuccessful();
153+
static::assertResponseRedirects('/login');
161154
}
162155

163156
#[Test]

0 commit comments

Comments
 (0)