File: Group-jwt-for-tests-depending-on-it.patch

package info (click to toggle)
symfony 6.4.21%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 121,996 kB
  • sloc: php: 1,438,595; xml: 6,582; sh: 605; javascript: 597; makefile: 188; pascal: 71
file content (51 lines) | stat: -rw-r--r-- 1,967 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Tue, 23 May 2023 23:30:52 +0200
Subject: Group jwt for tests depending on it

---
 .../Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php       | 1 +
 .../Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php    | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php
index 6cc2b1f..72398fa 100644
--- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php
+++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php
@@ -347,6 +347,7 @@ class AccessTokenTest extends AbstractWebTestCase
 
     /**
      * @requires extension openssl
+     * @group jwt
      */
     public function testOidcSuccess()
     {
diff --git a/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
index f2c1993..f019857 100644
--- a/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
+++ b/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
@@ -33,6 +33,7 @@ class OidcTokenHandlerTest extends TestCase
 
     /**
      * @dataProvider getClaims
+     * @group jwt
      */
     public function testGetsUserIdentifierFromSignedToken(string $claim, string $expected)
     {
@@ -77,6 +78,7 @@ class OidcTokenHandlerTest extends TestCase
 
     /**
      * @dataProvider getInvalidTokens
+     * @group jwt
      */
     public function testThrowsAnErrorIfTokenIsInvalid(string $token)
     {
@@ -126,6 +128,9 @@ class OidcTokenHandlerTest extends TestCase
         ];
     }
 
+    /**
+     * @group jwt
+     */
     public function testThrowsAnErrorIfUserPropertyIsMissing()
     {
         $this->expectException(BadCredentialsException::class);