Skip to content

Commit fbc847d

Browse files
authored
[9.x] Flushes components cache between tests (#1254)
* Flushes components cache between tests * Bumps components
1 parent d74503b commit fbc847d

File tree

2 files changed

+30
-25
lines changed

2 files changed

+30
-25
lines changed

composer.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@
1616
],
1717
"require": {
1818
"php": "^8.0.2",
19-
"illuminate/auth": "^9.21",
20-
"illuminate/broadcasting": "^9.21",
21-
"illuminate/bus": "^9.21",
22-
"illuminate/cache": "^9.21",
23-
"illuminate/collections": "^9.21",
24-
"illuminate/config": "^9.21",
25-
"illuminate/console": "^9.21",
26-
"illuminate/container": "^9.21",
27-
"illuminate/contracts": "^9.21",
28-
"illuminate/database": "^9.21",
29-
"illuminate/encryption": "^9.21",
30-
"illuminate/events": "^9.21",
31-
"illuminate/filesystem": "^9.21",
32-
"illuminate/hashing": "^9.21",
33-
"illuminate/http": "^9.21",
34-
"illuminate/macroable": "^9.21",
35-
"illuminate/pagination": "^9.21",
36-
"illuminate/pipeline": "^9.21",
37-
"illuminate/queue": "^9.21",
38-
"illuminate/support": "^9.21",
39-
"illuminate/testing": "^9.21",
40-
"illuminate/translation": "^9.21",
41-
"illuminate/validation": "^9.21",
42-
"illuminate/view": "^9.21",
43-
"illuminate/log": "^9.21",
19+
"illuminate/auth": "^9.36.3",
20+
"illuminate/broadcasting": "^9.36.3",
21+
"illuminate/bus": "^9.36.3",
22+
"illuminate/cache": "^9.36.3",
23+
"illuminate/collections": "^9.36.3",
24+
"illuminate/config": "^9.36.3",
25+
"illuminate/console": "^9.36.3",
26+
"illuminate/container": "^9.36.3",
27+
"illuminate/contracts": "^9.36.3",
28+
"illuminate/database": "^9.36.3",
29+
"illuminate/encryption": "^9.36.3",
30+
"illuminate/events": "^9.36.3",
31+
"illuminate/filesystem": "^9.36.3",
32+
"illuminate/hashing": "^9.36.3",
33+
"illuminate/http": "^9.36.3",
34+
"illuminate/macroable": "^9.36.3",
35+
"illuminate/pagination": "^9.36.3",
36+
"illuminate/pipeline": "^9.36.3",
37+
"illuminate/queue": "^9.36.3",
38+
"illuminate/support": "^9.36.3",
39+
"illuminate/testing": "^9.36.3",
40+
"illuminate/translation": "^9.36.3",
41+
"illuminate/validation": "^9.36.3",
42+
"illuminate/view": "^9.36.3",
43+
"illuminate/log": "^9.36.3",
4444
"dragonmantank/cron-expression": "^3.1",
4545
"nikic/fast-route": "^1.3",
4646
"symfony/console": "^6.0",

src/Testing/TestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Illuminate\Contracts\Auth\Authenticatable;
77
use Illuminate\Contracts\Console\Kernel;
88
use Illuminate\Support\Facades\Facade;
9+
use Illuminate\View\Component;
910
use Mockery;
1011
use PHPUnit\Framework\TestCase as BaseTestCase;
1112

@@ -124,6 +125,10 @@ protected function tearDown(): void
124125
$this->app->flush();
125126
$this->app = null;
126127
}
128+
129+
Component::flushCache();
130+
Component::forgetComponentsResolver();
131+
Component::forgetFactory();
127132
}
128133

129134
/**

0 commit comments

Comments
 (0)