Skip to content

Commit 6dc6ce7

Browse files
Stephan Wentzpl-github
authored andcommitted
fix: Remove legacy check
1 parent c39ef04 commit 6dc6ce7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/Request/RequestBuilderTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Security\Core\User\InMemoryUser;
1515

1616
use function current;
17-
use function method_exists;
1817
use 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');

0 commit comments

Comments
 (0)