File tree Expand file tree Collapse file tree 4 files changed +36
-8
lines changed
Expand file tree Collapse file tree 4 files changed +36
-8
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## v0.6.0 (2020-05-13)
4+ ### Changed
5+ - Update composer dependencies ([ #11 ] ( https://github.com/thepinecode/blade-filters/pull/11 ) )
6+
37## v0.5.0 (2020-01-15)
48### Changed
59- Upgrade testbench version
Original file line number Diff line number Diff line change 2424 "illuminate/support" : " ^6.0 || ^7.0"
2525 },
2626 "require-dev" : {
27- "orchestra/testbench" : " ~5.0.0"
27+ "laravel/laravel" : " dev-master" ,
28+ "phpunit/phpunit" : " ^9.0"
2829 },
2930 "extra" : {
3031 "laravel" : {
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Pine \BladeFilters \Tests ;
4+
5+ use Illuminate \Contracts \Console \Kernel ;
6+ use Pine \BladeFilters \BladeFiltersServiceProvider ;
7+
8+ trait CreatesApplication
9+ {
10+ /**
11+ * Creates the application.
12+ *
13+ * @return \Illuminate\Foundation\Application
14+ */
15+ public function createApplication ()
16+ {
17+ $ app = require __DIR__ .'/../vendor/laravel/laravel/bootstrap/app.php ' ;
18+
19+ $ app ->booting (function () use ($ app ) {
20+ $ app ->register (BladeFiltersServiceProvider::class);
21+ });
22+
23+ $ app ->make (Kernel::class)->bootstrap ();
24+
25+ return $ app ;
26+ }
27+ }
Original file line number Diff line number Diff line change 22
33namespace Pine \BladeFilters \Tests ;
44
5+ use Illuminate \Foundation \Testing \TestCase as BaseTestCase ;
56use Illuminate \Support \Facades \Route ;
67use Illuminate \Support \Facades \View ;
7- use Orchestra \Testbench \TestCase as BaseTestCase ;
8- use Pine \BladeFilters \BladeFiltersServiceProvider ;
98
109abstract class TestCase extends BaseTestCase
1110{
11+ use CreatesApplication;
12+
1213 public function setUp (): void
1314 {
1415 parent ::setUp ();
@@ -19,9 +20,4 @@ public function setUp(): void
1920 return view ("blade-filters:: {$ filter }" );
2021 });
2122 }
22-
23- protected function getPackageProviders ($ app )
24- {
25- return [BladeFiltersServiceProvider::class];
26- }
2723}
You can’t perform that action at this time.
0 commit comments