File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414use Symfony \Component \Security \Core \User \InMemoryUser ;
1515
1616use function current ;
17- use function method_exists ;
1817use function Safe \json_encode ;
1918
2019#[CoversClass(RequestBuilder::class)]
@@ -232,10 +231,6 @@ public function testAuthenticationHeadersAreSetOnAuthCall(): void
232231
233232 public function testAuthorizationHeaderIsSetOnAuthLoginWithDeprecatedFindUser (): void
234233 {
235- if (!method_exists (KernelBrowser::class, 'loginUser ' )) {
236- $ this ->markTestSkipped ('authLogin() only available for symfony/framework-bundle >= 5.1 ' );
237- }
238-
239234 $ browser = $ this ->createMock (KernelBrowser::class);
240235 $ browser ->expects ($ this ->once ())
241236 ->method ('loginUser ' )
@@ -253,10 +248,6 @@ public function testAuthorizationHeaderIsSetOnAuthLoginWithDeprecatedFindUser():
253248
254249 public function testAuthorizationHeaderIsSetOnAuthLoginCall (): void
255250 {
256- if (!method_exists (KernelBrowser::class, 'loginUser ' )) {
257- $ this ->markTestSkipped ('authLogin() only available for symfony/framework-bundle >= 5.1 ' );
258- }
259-
260251 $ browser = $ this ->createMock (KernelBrowser::class);
261252 $ browser ->expects ($ this ->never ())
262253 ->method ('loginUser ' );
You can’t perform that action at this time.
0 commit comments