File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
3- use CmsMulti \FilamentClearCache \Facades \FilamentClearCache ;
43use CmsMulti \FilamentClearCache \Commands \FilamentClearCacheCommand ;
4+ use CmsMulti \FilamentClearCache \Facades \FilamentClearCache ;
55use Illuminate \Support \Facades \Artisan ;
66use Illuminate \Support \Facades \Cache ;
77
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ protected function setUpDatabase($app)
5353 });
5454
5555 // Cache array
56- $ app ['cache ' ]->set ('cache.default ' , 'array ' );
56+ $ app ['cache ' ]->set ('cache.default ' , 'array ' );
5757
5858 // self::$migration->up();
5959 }
Original file line number Diff line number Diff line change 33use CmsMulti \FilamentClearCache \FilamentClearCacheManager ;
44
55it ('adds string command ' , function () {
6- $ manager = new FilamentClearCacheManager () ;
6+ $ manager = new FilamentClearCacheManager ;
77 $ manager ->addCommand ('cache:clear ' );
88
99 expect ($ manager ->getCommands ())
1212});
1313
1414it ('adds array command with params ' , function () {
15- $ manager = new FilamentClearCacheManager () ;
15+ $ manager = new FilamentClearCacheManager ;
1616 $ manager ->addCommand ('config:cache ' , ['--force ' => true ]);
1717
1818 expect ($ manager ->getCommands ()[0 ])
1919 ->toBe (['config:cache ' , ['--force ' => true ]]);
2020});
2121
2222it ('adds closure command ' , function () {
23- $ manager = new FilamentClearCacheManager () ;
23+ $ manager = new FilamentClearCacheManager ;
2424 $ ran = false ;
2525 $ manager ->addCommand (function () use (&$ ran ) {
2626 $ ran = true ;
You can’t perform that action at this time.
0 commit comments