Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 24, 2023
1 parent 6a292fd commit 2c1ba01
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bin/sync
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Illuminate\Support\Collection::make([
$files->copy("{$workingPath}/core/testbench.yaml", "{$workingPath}/testbench.yaml");

Illuminate\Support\Collection::make([
...$files->glob("{$workingPath}/core/workbench/config/*"),
...$files->glob("{$workingPath}/core/workbench/routes/*"),
...$files->glob("{$workingPath}/core/workbench/resources/lang/en/*"),
...$files->glob("{$workingPath}/core/workbench/resources/views/components/*"),
...$files->glob("{$workingPath}/core/workbench/resources/views/*"),
])->flatten()
Expand Down
2 changes: 1 addition & 1 deletion core
Submodule core updated 38 files
+26 −0 CHANGELOG-6.x.md
+3 −7 laravel/bootstrap/app.php
+0 −2 laravel/server.php
+54 −0 src/Attributes/Define.php
+26 −0 src/Attributes/DefineDatabase.php
+26 −0 src/Attributes/DefineEnvironment.php
+26 −0 src/Attributes/DefineRoute.php
+39 −15 src/Bootstrap/LoadConfiguration.php
+71 −0 src/Bootstrap/LoadConfigurationWithWorkbench.php
+12 −3 src/Concerns/CreatesApplication.php
+41 −0 src/Concerns/HandlesAttributes.php
+6 −1 src/Concerns/HandlesDatabases.php
+8 −1 src/Concerns/HandlesRoutes.php
+21 −0 src/Concerns/InteractsWithPHPUnit.php
+5 −28 src/Concerns/InteractsWithWorkbench.php
+1 −0 src/Concerns/Testing.php
+3 −4 src/Concerns/WithWorkbench.php
+5 −7 src/Console/Commander.php
+3 −4 src/Foundation/Application.php
+0 −86 src/Foundation/Bootstrap/DiscoverRoutes.php
+0 −42 src/Foundation/Bootstrap/StartWorkbench.php
+4 −0 src/Foundation/Config.php
+0 −66 src/Foundation/WorkbenchFinder.php
+52 −0 src/PHPUnit/AttributeParser.php
+195 −0 src/Workbench/Workbench.php
+1 −0 testbench.yaml
+79 −0 tests/AttributeEnvironmentSetupTest.php
+47 −0 tests/Attributes/DefineTest.php
+3 −1 tests/Databases/MigrateWithLaravelTest.php
+0 −1 tests/Factories/UserFactoryTest.php
+4 −0 tests/Foundation/ConfigTest.php
+1 −0 tests/TestbenchTest.php
+4 −3 tests/WithWorkbenchTest.php
+19 −0 tests/Workbench/DiscoversTest.php
+2 −0 tests/Workbench/HelpersTest.php
+7 −0 workbench/config/workbench.php
+5 −0 workbench/resources/lang/en/welcome.php
+1 −1 workbench/routes/web.php
1 change: 1 addition & 0 deletions testbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ migrations:

workbench:
discovers:
config: true
web: true
api: true
commands: true
Expand Down
7 changes: 7 additions & 0 deletions workbench/config/workbench.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

use Composer\InstalledVersions;

return [
'installed' => InstalledVersions::isInstalled('orchestra/workbench'),
];
5 changes: 5 additions & 0 deletions workbench/resources/lang/en/welcome.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'morning' => 'Good Morning',
];
2 changes: 1 addition & 1 deletion workbench/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
return view('welcome');
});

Route::view('/testbench', 'workbench::testbench');
Route::view('/testbench', 'workbench::testbench')->name('testbench');

0 comments on commit 2c1ba01

Please sign in to comment.