Skip to content

Commit 09e90f7

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: fix merge do not use mocks in tests when not necessary [Mailer] Missing import in first example [Security] Add test case for user not found [SecurityBundle] Use config's secret in remember-me signatures
2 parents 8a9e22b + d45240c commit 09e90f7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
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+
}

0 commit comments

Comments
 (0)