Commit 17e3a94 vidy
committed
1 parent 02e3959 commit 17e3a94 Copy full SHA for 17e3a94
File tree 1 file changed +15
-6
lines changed
1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,22 @@ public function test_filter_with_missing_arguments()
40
40
{
41
41
$ this ->expectException (SyntaxException::class);
42
42
43
- $ input = '"css/carousel.css" | theme_asset_url: ' ;
43
+ $ input = '"css/carousel.css" | theme_asset_url: ' ;
44
44
45
- $ parser = new BladeFilterParser ();
46
-
47
- $ filter = $ parser ->parse ($ input );
45
+ $ parser = new BladeFilterParser ();
48
46
49
- $ this ->assertEquals ($ filter ['prefiltered ' ], '"css/carousel.css" ' );
50
- $ this ->assertTrue (count ($ filter ['filters ' ]) == 1 );
47
+ $ parser ->parse ($ input );
51
48
}
49
+
50
+ /** @test */
51
+ public function test_invalid_filter_argument_name ()
52
+ {
53
+ $ this ->expectException (SyntaxException::class);
54
+
55
+ $ input = '"css/carousel.css" | "t" ' ;
56
+
57
+ $ parser = new BladeFilterParser ();
58
+
59
+ $ parser ->parse ($ input );
60
+ }
52
61
}
You can’t perform that action at this time.
0 commit comments