Skip to content

Commit 6a540ed

Browse files
committed
ICL: Formatted.
1 parent d4a5a45 commit 6a540ed

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/TestCase.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,6 @@ protected function resolveApplicationConsoleKernel($app)
3838
$app->singleton(KernelContract::class, Kernel::class);
3939
}
4040

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-
6041
protected function emulateProduction()
6142
{
6243
$this->app->detectEnvironment(function () {
@@ -107,4 +88,23 @@ private function normalizeExpectedFileContent($content)
10788

10889
return $content;
10990
}
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+
}
110110
}

0 commit comments

Comments
 (0)