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
{{ message }}
Repository navigation
Commit 6804fcc
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: tests/Authentication/Provider/SessionAuthenticationProviderTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -313,7 +313,7 @@ public function testAnErrorIsRaisedWhenNoUserProviderSupportsTheUser(): void
313
313
->willReturn(false);
314
314
315
315
$this->expectException(\RuntimeException::class);
316
-
$this->expectExceptionMessage(\sprintf('There is no user provider for user "%s".', InMemoryUser::class));
316
+
$this->expectExceptionMessageIs(\sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', InMemoryUser::class));
$this->expectExceptionMessage('The "firewalls" config for the session authentication provider is not set and the "security.firewalls" container parameter has not been set.');
20
+
$this->expectExceptionMessageIs('The "firewalls" config for the session authentication provider is not set and the "security.firewalls" container parameter has not been set. Ensure the SecurityBundle is configured or set a list of firewalls to use.');
$this->expectExceptionMessage('The "database_connection" service does not exist in the container, please review the "server.periodic.dbal.connections" configuration for the BabDevWebSocketBundle to ensure all connections are set in your DoctrineBundle configuration.');
33
+
$this->expectExceptionMessageIs('The "database_connection" service does not exist in the container, please review the "server.periodic.dbal.connections" configuration for the BabDevWebSocketBundle to ensure all connections are set in your DoctrineBundle configuration.');
$this->expectExceptionMessage('The "server.session.handler_service_id" option requires sessions to be enabled in the FrameworkBundle configuration ("framework.session")');
16
+
$this->expectExceptionMessageIs('The "server.session.handler_service_id" option requires sessions to be enabled in the FrameworkBundle configuration ("framework.session"), as the websocket server reads sessions using the same options. To read sessions without the FrameworkBundle session configuration, use the "server.session.factory_service_id" or "server.session.storage_factory_service_id" option instead.');
$this->expectExceptionMessage('A placeholder name must be a string (0 given).');
100
+
$this->expectExceptionMessageIs(\sprintf('A placeholder name must be a string (0 given). Did you forget to specify the placeholder key for the requirement "\d+" of the route in "%s"?', InvalidRequirementMessageHandler::class));
$this->expectExceptionMessage(\sprintf('The "%s" attribute on class "%s" must define a path.', AsMessageHandler::class, MissingPathMessageHandler::class));
108
+
$this->expectExceptionMessageIs(\sprintf('The "%s" attribute on class "%s" must define a path.', AsMessageHandler::class, MissingPathMessageHandler::class));
0 commit comments