Skip to content

Commit f280400

Browse files
committed
Use bootstrap 5 form theme
1 parent c1691a8 commit f280400

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

config/packages/twig.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
twig:
2-
default_path: '%kernel.project_dir%/templates'
2+
file_name_pattern: '*.twig'
33
form_themes:
4-
- 'form/layout.html.twig'
4+
- 'bootstrap_5_layout.html.twig'
55
- 'form/fields.html.twig'
6-
file_name_pattern: '*.twig'
76

87
when@test:
98
twig:

templates/form/layout.html.twig

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/Controller/Admin/BlogControllerTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ public function testAdminNewDuplicatedPost(): void
133133
// post titles must be unique, so trying to create the same post twice should result in an error
134134
$this->client->submit($form);
135135

136-
$this->assertSelectorTextContains('form .invalid-feedback .form-error-message', 'This title was already used in another blog post, but they must be unique.');
137136
$this->assertSelectorExists('form #post_title.is-invalid');
137+
$this->assertSelectorTextContains(
138+
'form .invalid-feedback',
139+
'This title was already used in another blog post, but they must be unique.'
140+
);
138141
}
139142

140143
public function testAdminShowPost(): void

0 commit comments

Comments
 (0)