Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 626772d

Browse files
committed
Rename method to better express what it's actually doing
1 parent f5fbb6a commit 626772d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/Security/Authorization/TwoFactorAccessDeciderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function isAccessible_pathAccessGranted_returnTrue(): void
136136
*/
137137
public function isAccessible_isPublic_returnTrue(): void
138138
{
139-
$this->requireSymfony5_1();
139+
$this->requireAtLeastSymfony5_1();
140140

141141
$this->stubAccessMapReturnsAttributes([AccessListener::PUBLIC_ACCESS]);
142142
$this->whenRequestBaseUrl('');

Tests/TestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ abstract class TestCase extends PHPUnitTestCase
1212
{
1313
private const SYMFONY_5_1 = 50100;
1414

15-
protected function requireSymfony5_1()
15+
protected function requireAtLeastSymfony5_1()
1616
{
17-
$this->requireSymfonyVersion(self::SYMFONY_5_1);
17+
$this->requireAtLeastSymfonyVersion(self::SYMFONY_5_1);
1818
}
1919

20-
private function requireSymfonyVersion(int $version)
20+
private function requireAtLeastSymfonyVersion(int $version)
2121
{
2222
if (Kernel::VERSION_ID < $version) {
23-
$this->markTestSkipped("This Symfony version doesn't support authenticators.");
23+
$this->markTestSkipped('Skipping test case, minimum required Symfony version not fulfilled.');
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)