File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ public function __construct(
2020 ) {
2121 parent ::__construct ($ framework );
2222
23- $ this ->name = static ::convertBracketsToDots (Str::before ($ name , '[] ' ));
23+ $ this ->name = Str:: slug ( static ::convertBracketsToDots (Str::before ($ name , '[] ' ) ));
2424 }
2525}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Javaabu \Forms \Tests \Feature ;
4+
5+ use Illuminate \Support \Facades \Config ;
6+ use Illuminate \Support \Facades \Route ;
7+ use Javaabu \Forms \Tests \TestCase ;
8+
9+ class JsErrorsTest extends TestCase
10+ {
11+ /** @test */
12+ public function it_can_render_bootstrap_5_js_errors ()
13+ {
14+ $ this ->setFrameworkBootstrap5 ();
15+ $ this ->registerTestRoute ('js-errors ' );
16+
17+ $ this ->visit ('/js-errors ' )
18+ ->seeElement ('ul.invalid-feedback.test-input-error ' );
19+ }
20+
21+ /** @test */
22+ public function it_can_render_material_admin_26_js_errors ()
23+ {
24+ $ this ->setFrameworkMaterialAdmin26 ();
25+ $ this ->registerTestRoute ('js-errors ' );
26+
27+ $ this ->visit ('/js-errors ' )
28+ ->seeElement ('ul.invalid-feedback.test-input-error ' );
29+ }
30+ }
Original file line number Diff line number Diff line change 1+ <x-forms::js-errors name =" test_input" />
You can’t perform that action at this time.
0 commit comments