You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #52157 [Tests] Move expectException closer to the place of the expectation to avoid false positives (OskarStark)
This PR was merged into the 6.4 branch.
Discussion
----------
[Tests] Move `expectException` closer to the place of the expectation to avoid false positives
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | --
| License | MIT
If you guys like this PR, I will fix the other places as well
Should be merged after merge & upmerge of:
* #52365
Commits
-------
6115ab0751 [Tests] Move expectException closer to the place of the expectation to avoid false positives
$this->expectExceptionMessage('The check_path "/some_area/login_check" for login method "form_login" is not matched by the firewall pattern "/secured_area/.*".');
50
48
$container = $this->getRawContainer();
51
49
52
50
$container->loadFromExtension('security', [
@@ -64,13 +62,14 @@ public function testInvalidCheckPath()
$this->expectExceptionMessage('The check_path "/some_area/login_check" for login method "form_login" is not matched by the firewall pattern "/secured_area/.*".');
$this->expectExceptionMessage('Not configuring explicitly the provider for the "http_basic" authenticator on "ambiguous" firewall is ambiguous as there is more than one registered provider.');
166
166
$container = $this->getRawContainer();
167
167
$container->loadFromExtension('security', [
168
168
'providers' => [
@@ -178,6 +178,9 @@ public function testMissingProviderForListener()
$this->expectExceptionMessage('Not configuring explicitly the provider for the "http_basic" authenticator on "ambiguous" firewall is ambiguous as there is more than one registered provider.');
183
+
181
184
$container->compile();
182
185
}
183
186
@@ -692,9 +695,6 @@ public static function provideEntryPointFirewalls(): iterable
0 commit comments