10000 minor #57688 [Security] Cleanup useless mocks in UserValueResolverTes… · symfony/symfony@d313221 · GitHub
[go: up one dir, main page]

Skip to content

Commit d313221

Browse files
committed
minor #57688 [Security] Cleanup useless mocks in UserValueResolverTest (norkunas)
This PR was merged into the 7.2 branch. Discussion ---------- [Security] Cleanup useless mocks in UserValueResolverTest | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT Commits ------- 253b5d9 [Security] Cleanup useless mocks in UserValueResolverTest
2 parents 4fd26a7 + 253b5d9 commit d313221

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public function testResolveSucceedsWithNullableAttribute()
9191
$tokenStorage->setToken($token);
9292

9393
$resolver = new UserValueResolver($tokenStorage);
94-
$metadata = $this->createMock(ArgumentMetadata::class);
9594
$metadata = new ArgumentMetadata('foo', null, false, false, null, false, [new CurrentUser()]);
9695

9796
$this->assertSame([$user], $resolver->resolve(Request::create('/'), $metadata));
@@ -105,7 +104,6 @@ public function testResolveSucceedsWithTypedAttribute()
105104
$tokenStorage->setToken($token);
106105

107106
$resolver = new UserValueResolver($tokenStorage);
108-
$metadata = $this->createMock(ArgumentMetadata::class);
109107
$metadata = new ArgumentMetadata('foo', InMemoryUser::class, false, false, null, false, [new CurrentUser()]);
110108

111109
$this->assertSame([$user], $resolver->resolve(Request::create('/'), $metadata));

0 commit comments

Comments
 (0)
0