File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Tests/Authenticator/Passport/Badge Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the Symfony package.
5+ *
6+ * (c) Fabien Potencier <fabien@symfony.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ namespace Symfony \Component \Security \Http \Tests \Authenticator \Passport \Badge ;
13+
14+ use PHPUnit \Framework \TestCase ;
15+ use Symfony \Component \Security \Core \Exception \UserNotFoundException ;
16+ use Symfony \Component \Security \Http \Authenticator \Passport \Badge \UserBadge ;
17+
18+ class UserBadgeTest extends TestCase
19+ {
20+ public function testUserNotFound ()
21+ {
22+ $ badge = new UserBadge ('dummy ' , function () { return null ; });
23+ $ this ->expectException (UserNotFoundException::class);
24+ $ badge ->getUser ();
25+ }
26+ }
You can’t perform that action at this time.
0 commit comments