use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Validator\ConstraintViolationList;
/**
* @internal
*/
class ContextControllerUnitTest extends TestCase
{ public function testSwitchLangNoArgument(): void
{ $controller =
new ContextController( $this->
createMock(ContextSwitchRoute::
class),
$this->
createMock(RequestStack::
class),
$this->
createMock(RouterInterface::
class) );
$this->
expectException(RoutingException::
class);
$this->
expectExceptionMessage('Parameter "languageId" is missing.'
);
$controller->
switchLanguage(new Request(),
$this->
createMock(SalesChannelContext::
class));
}