Skip to content

Commit

Permalink
Fix dropdown in test site
Browse files Browse the repository at this point in the history
  • Loading branch information
curry684 committed Jan 16, 2025
1 parent 1fee02f commit 0fbc8a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 6 additions & 0 deletions tests/Fixture/src/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ public function fakeSuccess(Request $request): Response
]);
}

/**
* @param FormInterface<array<string, string>> $form
*/
private function finishRequest(FormInterface $form, Request $request): Response
{
$form->handleRequest($request);
Expand All @@ -102,6 +105,9 @@ private function finishRequest(FormInterface $form, Request $request): Response
]);
}

/**
* @return string[]
*/
private static function getLanguages(): array
{
return array_map(fn (string $match) => mb_substr($match, -7, 2), glob(__DIR__ . '/../../../../translations/antispam+intl-icu.[a-z][a-z].yaml'));
Expand Down
9 changes: 3 additions & 6 deletions tests/Fixture/templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha256-PI8n5gCcz9cQqQXm3PEtDuPG8qx9oFsFctPg0S5zb8g=" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha256-3gQJhtmj7YnV1fmtbVcnAV6eI4ws0Tr48bVZCThtCGQ=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@floating-ui/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/@floating-ui/[email protected]"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
{% block stylesheets %}
{% endblock %}

{% block javascripts %}
{% endblock %}
</head>
<body>
<header class="navbar navbar-expand-lg bg-body-tertiary">
<header class="navbar navbar-expand bg-body-tertiary">
<div class="container">
<a class="navbar-brand" href="/">{{ title|default('No title set') }}</a>
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
Expand All @@ -42,6 +39,6 @@
{% endfor %}
{% block body %}{% endblock %}
</main>
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>
1 change: 1 addition & 0 deletions tests/Fixture/translations/messages+intl-icu.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Email: Email
Message: Message
Submit: Submit

languages: Languages
languages.native:
en: English
fr: Français
Expand Down

0 comments on commit 0fbc8a0

Please sign in to comment.