File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -38,25 +38,6 @@ protected function resolveApplicationConsoleKernel($app)
38
38
$ app ->singleton (KernelContract::class, Kernel::class);
39
39
}
40
40
41
- protected function tearDown ()
42
- {
43
- $ this ->cleanLogsDirectory ();
44
-
45
- parent ::tearDown ();
46
- }
47
-
48
- private function cleanLogsDirectory ()
49
- {
50
- $ objects = (new Finder )->in (storage_path ('logs ' ))->depth (0 );
51
- foreach ($ objects as $ object ) {
52
- if (File::isDirectory ($ object )) {
53
- File::deleteDirectory ($ object );
54
- } else {
55
- File::delete ($ object );
56
- }
57
- }
58
- }
59
-
60
41
protected function emulateProduction ()
61
42
{
62
43
$ this ->app ->detectEnvironment (function () {
@@ -107,4 +88,23 @@ private function normalizeExpectedFileContent($content)
107
88
108
89
return $ content ;
109
90
}
91
+
92
+ protected function tearDown ()
93
+ {
94
+ $ this ->cleanLogsDirectory ();
95
+
96
+ parent ::tearDown ();
97
+ }
98
+
99
+ private function cleanLogsDirectory ()
100
+ {
101
+ $ objects = (new Finder )->in (storage_path ('logs ' ))->depth (0 );
102
+ foreach ($ objects as $ object ) {
103
+ if (File::isDirectory ($ object )) {
104
+ File::deleteDirectory ($ object );
105
+ } else {
106
+ File::delete ($ object );
107
+ }
108
+ }
109
+ }
110
110
}
You can’t perform that action at this time.
0 commit comments