Skip to content

Commit 6652906

Browse files
authored
Update README.md (mettle#291)
1 parent fc5c504 commit 6652906

15 files changed

+101
-49
lines changed

.env.example

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ LOG_CHANNEL=stack
99
DB_CONNECTION=mysql
1010
DB_HOST=127.0.0.1
1111
DB_PORT=3306
12-
DB_DATABASE=laravel
13-
DB_USERNAME=root
14-
DB_PASSWORD=
12+
DB_DATABASE=sendportal_dev
13+
DB_USERNAME=homestead
14+
DB_PASSWORD=secret
1515

1616
BROADCAST_DRIVER=log
1717
CACHE_DRIVER=file

.github/workflows/ci.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020
image: mysql:5.7
2121
env:
2222
MYSQL_ROOT_PASSWORD: password
23-
MYSQL_USER: homestead
23+
MYSQL_DATABASE: sendportal_testing
24+
MYSQL_USER: laravel
2425
MYSQL_PASSWORD: secret
25-
MYSQL_DATABASE: sendportal_dev
2626
ports:
2727
- 3306:3306
2828
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2929

3030
postgres:
3131
image: postgres
3232
env:
33-
POSTGRES_USER: homestead
33+
POSTGRES_DB: sendportal_testing
34+
POSTGRES_USER: laravel
3435
POSTGRES_PASSWORD: secret
35-
POSTGRES_DB: sendportal_dev
3636
ports:
3737
- 5432:5432
3838
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -46,10 +46,8 @@ jobs:
4646
env:
4747
DB_CONNECTION: mysql
4848
DB_HOST: mysql
49-
DB_PORT: 3306
5049
- name: Run Testsuite against Postgres
5150
run: vendor/bin/phpunit
5251
env:
5352
DB_CONNECTION: pgsql
5453
DB_HOST: postgres
55-
DB_PORT: 5432

.php-cs-fixer.cache

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"php":"8.1.12","version":"3.13.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"alpha"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_import_per_statement":{"group_to_single_imports":false},"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline"},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_unused_imports":true,"no_empty_statement":true,"no_useless_return":true,"not_operator_with_successor_space":true,"explicit_string_variable":true,"simple_to_complex_string_variable":true,"array_indentation":true,"blank_line_before_statement":{"statements":["case","default","declare","do","goto","if","include","include_once","require","require_once","switch","try"]}},"hashes":{"routes\/console.php":"043de8d2168ad1c2f19f1f32431ca640","routes\/api.php":"1cfef62d42fc585043690f50f0d7816f","routes\/web.php":"765479749fce08c21ce3c82878dc68e5","routes\/channels.php":"edadd8dfa4a96a42dde09f4ba1362bbd","database\/seeders\/DatabaseSeeder.php":"863fc820d5b1b26b07ff78678e75c600","database\/factories\/UserFactory.php":"14bb2790d699e4c12d3c921413397816","database\/factories\/InvitationFactory.php":"5d7806ef7213f9b8d0ccb1a67572c1c2","database\/factories\/ApiTokenFactory.php":"39a07fd93703811c1e8138c90f617cc5","database\/factories\/WorkspaceFactory.php":"8eb260ed12b4aeef9662731f5f927524","database\/migrations\/2014_10_12_000000_create_users_table.php":"6f6305c9621dc43a7e4e67692f74823a","database\/migrations\/2019_08_19_000000_create_failed_jobs_table.php":"2d2101455252f967fc9f40bdfd44c96f","database\/migrations\/2017_04_11_100000_create_invitations_table.php":"4498012dc9968cfbe113a08f39ee14da","database\/migrations\/2021_01_26_151747_remove_api_token_from_users_table.php":"768971eed7996a173e67e9367cab22ef","database\/migrations\/2019_08_24_114758_adjust_users_table.php":"8a5aee2cd552991b28f0d9633d54efe9","database\/migrations\/2017_04_11_000000_create_workspaces_table.php":"523915ba995bcc529a38261248825b82","database\/migrations\/2020_11_13_120125_create_api_tokens_table.php":"7ee00241a111ac86e6ce713f220dfa0c","database\/migrations\/2014_10_12_100000_create_password_resets_table.php":"6a565de52ad5c704c0a50d9da2dce231","app\/Providers\/EventServiceProvider.php":"34a080e907226081e6958d8e1611101e","app\/Providers\/AppServiceProvider.php":"238832fb41ec4d01ea13a4e3d8688b1f","app\/Providers\/BroadcastServiceProvider.php":"0ee72a104b9018e848f386a2d425bd36","app\/Providers\/HorizonServiceProvider.php":"7b22e94cc33bfe5edadd55ddbb24bbf8","app\/Providers\/AuthServiceProvider.php":"e6e625536689ce1bf6cfa9a02e66457f","app\/Providers\/RouteServiceProvider.php":"89a38040e0eb44cbd3c9fd286eb55f39","app\/Setup\/WritesToEnvironment.php":"b44dd1d8d356f69bb27369f59de68296","app\/Setup\/Migrations.php":"442db278c9932e2729addf6e619e01d6","app\/Setup\/Admin.php":"e4685eb3e4243ccf9131cd1a11bfe1a3","app\/Setup\/Env.php":"b93a8f6fe59cc983f49f3c8cc33bc064","app\/Setup\/Database.php":"39161becadde353e1bd8b8f4e2afebdb","app\/Setup\/Key.php":"611620a7586d5319931c3aab0801e66a","app\/Setup\/Url.php":"462d49f15cb5b38e81cd41b479f520c2","app\/Setup\/StepInterface.php":"95ef7030278de820339ab94bbbbbf231","app\/Models\/User.php":"4a2f6361032921bc17bbea9d540b3527","app\/Models\/ApiToken.php":"24bb163dec324c56b5a763f6e473671b","app\/Models\/Invitation.php":"5f1116032f469de07b258c28a04d2630","app\/Models\/Workspace.php":"d1ea509954f2474880e6074aada00b91","app\/Livewire\/Setup.php":"1e1c86301c8c7f0b2a128e90d5c203a6","app\/Http\/Middleware\/Authenticate.php":"1a28ab8a480d33b5e262412c084e77b2","app\/Http\/Middleware\/TrustProxies.php":"80202bd7bf4c31e901f1043346b82dad","app\/Http\/Middleware\/LocaleMiddleware.php":"1386bc4ac32df382c5631101b0f9339e","app\/Http\/Middleware\/VerifyCsrfToken.php":"707f8a5975d94d67dc2e9f5b6c561cef","app\/Http\/Middleware\/RequireWorkspace.php":"410b7682a4f21bfb81143d6469eaaa77","app\/Http\/Middleware\/EncryptCookies.php":"f6f49f8cb83225155ebe207c0eb24c18","app\/Http\/Middleware\/RedirectIfAuthenticated.php":"ddbd033d07f29b97941e2e021a78eab4","app\/Http\/Middleware\/OwnsRequestedWorkspace.php":"99b3eb77cb33c12f4630f0ff0bf0a84e","app\/Http\/Middleware\/OwnsCurrentWorkspace.php":"ddd644de44de55bed0d14a058534da5f","app\/Http\/Middleware\/CheckForMaintenanceMode.php":"13fecdea17d95ffe8f70fe3c56e0f497","app\/Http\/Middleware\/TrustHosts.php":"181bdfdfebffb2e8019806a7b3c061bd","app\/Http\/Middleware\/TrimStrings.php":"6147464a2cd11a9b32189c718f3e1fa5","app\/Http\/Controllers\/Auth\/ApiTokenController.php":"422df9c575b44baa0dd4554037164745","app\/Http\/Controllers\/Auth\/RegisterController.php":"64b03c166cb7e856f631bae916199add","app\/Http\/Controllers\/Auth\/VerificationController.php":"1b6f2e916bde69d3275883aae411f78d","app\/Http\/Controllers\/Auth\/ForgotPasswordController.php":"b06419407998c87cf5d89c8936f87810","app\/Http\/Controllers\/Auth\/ChangePasswordController.php":"057201b4f14d70c5d8450966943f7a9b","app\/Http\/Controllers\/Auth\/ConfirmPasswordController.php":"3ce0c3b0a4be919bdb39e7bd7e42a894","app\/Http\/Controllers\/Auth\/LoginController.php":"51e0c4938d8568990326a16f47993774","app\/Http\/Controllers\/Auth\/ResetPasswordController.php":"17de80faf8d3652db1277c64cd7cab1d","app\/Http\/Controllers\/Auth\/ProfileController.php":"462ff2a3b6ada8b9cb72b9000209e321","app\/Http\/Controllers\/SetupController.php":"40bc4b1d3b35aff81cec5c8d78c4754e","app\/Http\/Controllers\/Controller.php":"d2ab2e1e385a80aec6042dc23e7f86eb","app\/Http\/Controllers\/Workspaces\/WorkspaceUsersController.php":"dd2091a562bfc77ce849fff6720ebd86","app\/Http\/Controllers\/Workspaces\/WorkspaceInvitationsController.php":"62695e110bd391adeabdf9370d7e6336","app\/Http\/Controllers\/Workspaces\/SwitchWorkspaceController.php":"1ec0a5dc7c84a8409f4526a47a634497","app\/Http\/Controllers\/Workspaces\/PendingInvitationController.php":"0114fff979705de8bee82e163235482e","app\/Http\/Controllers\/Workspaces\/WorkspacesController.php":"a685eff29367597c4e6f6e706b005add","app\/Http\/Kernel.php":"b981843a2a2a59c3c0d9ea9694370134","app\/Http\/Resources\/Workspace.php":"d067a6f07bd550d4153c310c28715681","app\/Http\/Requests\/ApiTokens\/ApiTokenStoreRequest.php":"56c01901a407bb57f20dd618b4fdf89e","app\/Http\/Requests\/Workspaces\/CreateWorkspaceRequest.php":"c07da30174e0dd1a6815cffb3ca2c831","app\/Http\/Requests\/Workspaces\/WorkspaceUpdateRequest.php":"a1308a6bc8750c36ce811f1e8265b365","app\/Http\/Requests\/Workspaces\/WorkspaceInvitationStoreRequest.php":"71ada4990b3bd30b067d90e0ac67bad0","app\/Http\/Requests\/Workspaces\/WorkspaceStoreRequest.php":"1b397a607f55c196444bb5873f0c4224","app\/Http\/Requests\/ChangePasswordRequest.php":"425a965157b3e251d5fa51fb925f2697","app\/Http\/Requests\/ProfileUpdateRequest.php":"a910df5bf61b4ca7bbccb3f3bca9c082","app\/Exceptions\/Handler.php":"665c24eba27dfb276eac81356caedb56","app\/Console\/Commands\/InstallApplication.php":"c31897e6a3c43e30a5836f31b724f5cc","app\/Console\/Commands\/UpgradeApplication.php":"979a37cd757e85d83bb11eba093d0c1a","app\/Console\/Kernel.php":"df2152f06cd07c8e95e36e6afab01c76","app\/Traits\/ChecksInvitations.php":"66c0b922807da00a39471ab9281ce800","app\/Traits\/HasWorkspaces.php":"3b1f1c3bfb64c0485cdbe9c7e22bde30","app\/Traits\/HasSendportalCommandUtilities.php":"4d212d734d0fec6ad91ec58ce300cdc1","app\/Traits\/HasSendportalMigrationHandlers.php":"5c6a183868a086ed718dd85b7f9e1669","app\/Rules\/ValidInvitation.php":"e289a4ac9b5452ce039f9717fbbd57d4","app\/Repositories\/ApiTokenRepository.php":"2e749016d2e80736d99282762bc27e30","app\/Repositories\/WorkspacesRepository.php":"045fd3222c05c6ee10db83e5890c277d","app\/Services\/Workspaces\/AcceptInvitation.php":"b22d7bf8cb78c6b962728d43efcae37e","app\/Services\/Workspaces\/RemoveUserFromWorkspace.php":"e0b7cf22bd2106992f231e3541538a41","app\/Services\/Workspaces\/SendInvitation.php":"41e73e828863468e8433dd8631e2edbb","app\/Services\/Workspaces\/CreateWorkspace.php":"056f398e6a43ed813289dc41c01c5cdd","app\/Services\/Workspaces\/AddWorkspaceMember.php":"910c9a8d07a0579f7012f4c2183f9a9f","server.php":"323b10ec66fb238f6e9897ab36c825b3","config\/sendportal-host.php":"39ddd885f8fd2f326ad15646cf9a69f5","config\/filesystems.php":"137ee6ce65c76f00f676a9d2a3786a36","config\/queue.php":"db0dbed09037496aeb217ae090bbae29","config\/auth.php":"c6d98a3371702805b1143939f0180717","config\/mail.php":"1ef213740cec34cd746079abc9ba275a","config\/view.php":"24e00ccca17634d028fbbfdafd9e7461","config\/horizon.php":"09cf662fcfc7ea53b81b1e0d41deed68","config\/app.php":"a4fe6d4478eb85079fd59964ec1a8869","config\/cache.php":"c266e9b2172f63354184e1be8bf9763e","config\/broadcasting.php":"bf5b67dc7929b3c338925e1ff5b2c43c","config\/hashing.php":"993f7bd4607853d3905cbdb68e27331d","config\/services.php":"601a15384d0786875b6e009f1aff45e4","config\/database.php":"dc3e83d71b2e91970f1c99d2b4b337b5","config\/session.php":"a0eb60b59d22b34e253bd25ea0869932","config\/logging.php":"2d16257864aa0d12378e82882cfd17c3","config\/sendportal.php":"41cd7d8566ea01a15b9f4a25f5083b3f","config\/cors.php":"c50ff880307bd72e3271f2ec32b78f5e","tests\/TestSupportTrait.php":"c0c6eb36887e08a46d48abc2632e7f50","tests\/Unit\/ExampleTest.php":"27eacc0fde35be1db9c989b11cbbf18f","tests\/TestCase.php":"8dbce99cc4820fc4b8ece1da1b8c26af","tests\/CreatesApplication.php":"cb2f21cebfcc89f2c0d910dcc8c98815","tests\/Feature\/Auth\/AuthConfigEnabledTest.php":"d796b680b592b0ee04cfd56e937c8756","tests\/Feature\/Auth\/WorkspaceApiTokenTest.php":"e216eefbd964ce3b36aa08d27987d90c","tests\/Feature\/Auth\/AuthConfigDisabledTest.php":"812a8b8bc4d4aa7d03a43c868342d8f3","tests\/Feature\/Invitations\/NewUserInvitationTest.php":"9e4d109041157b17d4874d6fa38aa4dd","tests\/Feature\/Invitations\/ExistingUserInvitationTest.php":"dd43ce86c0349f4163e18a7b047a89db","tests\/Feature\/Setup\/SetupControllerTest.php":"5efe56576a1ff70bdd6c731c15ab649b","tests\/Feature\/Setup\/SetupTest.php":"4038362c0007e17d90b4ab55406213a2","tests\/Feature\/Workspaces\/WorkspaceRequiredTest.php":"897d8d05c84dd75e88d69ceb0df4f4f4","tests\/Feature\/Workspaces\/WorkspacesControllerTest.php":"a687a0f5ee70e97ad5e1c7f554c71296","tests\/Feature\/Workspaces\/SwitchWorkspaceTest.php":"c2916a1f420563106e637f028efcd3f7","tests\/Feature\/Workspaces\/WorkspaceInvitationsControllerTest.php":"5b48ebdf6d2206b925579e4d84a682a1","tests\/Feature\/Workspaces\/WorkspaceUserControllerTest.php":"597c1f354a2582ad09296999b379f7d0"}}

.php-cs-fixer.dist.php

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$finder = PhpCsFixer\Finder::create()
6+
->exclude('vendor')
7+
->exclude('node_modules')
8+
->exclude('bower_components')
9+
->exclude('public')
10+
->exclude('bootstrap')
11+
->exclude('resources')
12+
->exclude('storage')
13+
->in(__DIR__)
14+
->name('*.php')
15+
->notName('*.blade.php');
16+
17+
$config = new PhpCsFixer\Config();
18+
19+
return $config
20+
->setRules([
21+
'@PSR12' => true,
22+
'array_syntax' => ['syntax' => 'short'],
23+
'ordered_imports' => [
24+
'imports_order' => [
25+
'class',
26+
'function',
27+
'const'
28+
],
29+
'sort_algorithm' => 'alpha'
30+
],
31+
'no_unused_imports' => true,
32+
'no_empty_statement' => true,
33+
'no_useless_return' => true,
34+
'not_operator_with_successor_space' => true,
35+
'explicit_string_variable' => true,
36+
'simple_to_complex_string_variable' => true,
37+
'array_indentation' => true,
38+
'blank_line_before_statement' => [
39+
'statements' => [
40+
'case',
41+
'default',
42+
'declare',
43+
'do',
44+
'goto',
45+
'if',
46+
'include',
47+
'include_once',
48+
'require',
49+
'require_once',
50+
'switch',
51+
'try',
52+
]
53+
],
54+
])
55+
->setFinder($finder);

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ SendPortal V3 requires:
3131
- MySQL (≥ 5.7) or PostgreSQL (≥ 9.4)
3232

3333
If you are on an earlier version of PHP (7.3+) or Laravel (8+), please use [SendPortal V2](https://github.com/mettle/sendportal/releases/tag/v2.0.4)
34-

app/Http/Controllers/Auth/RegisterController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
class RegisterController extends Controller
2222
{
23-
use ChecksInvitations,
24-
RegistersUsers;
23+
use ChecksInvitations;
24+
use RegistersUsers;
2525

2626
/** @var AcceptInvitation */
2727
private $acceptInvitation;

app/Http/Controllers/Controller.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99

1010
class Controller extends BaseController
1111
{
12-
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
12+
use AuthorizesRequests;
13+
use DispatchesJobs;
14+
use ValidatesRequests;
1315
}

app/Traits/HasWorkspaces.php

+2
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,13 @@ public function currentWorkspace(): ?Workspace
9191
if ($this->activeWorkspace !== null) {
9292
return $this->activeWorkspace;
9393
}
94+
9495
if ($this->current_workspace_id) {
9596
$this->switchToWorkspace(Workspace::find($this->current_workspace_id));
9697

9798
return $this->activeWorkspace;
9899
}
100+
99101
if ($this->activeWorkspace === null && $this->hasWorkspaces()) {
100102
$this->switchToWorkspace($this->workspaces()->first());
101103

phpunit.xml.dist

+22-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false"
3-
backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true"
4-
convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false"
5-
stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
6-
<coverage>
7-
<include>
8-
<directory suffix=".php">src/</directory>
9-
</include>
10-
</coverage>
11-
<testsuites>
12-
<testsuite name="Test Suite">
13-
<directory>tests</directory>
14-
</testsuite>
15-
</testsuites>
16-
<php>
17-
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
18-
<env name="APP_DEBUG" value="true"/>
19-
<env name="APP_ENV" value="testing"/>
20-
<env name="CACHE_DRIVER" value="array"/>
21-
<env name="SESSION_DRIVER" value="array"/>
22-
<env name="QUEUE_DRIVER" value="sync"/>
23-
<env name="DB_DATABASE" value="sendportal-testing"/>
24-
<env name="DB_USERNAME" value="root"/>
25-
<env name="DB_PASSWORD" value="secret"/>
26-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<php>
9+
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
10+
<env name="APP_DEBUG" value="true"/>
11+
<env name="APP_ENV" value="testing"/>
12+
<env name="CACHE_DRIVER" value="array"/>
13+
<env name="SESSION_DRIVER" value="array"/>
14+
<env name="QUEUE_DRIVER" value="sync"/>
15+
<env name="DB_DATABASE" value="sendportal_testing"/>
16+
<env name="DB_USERNAME" value="laravel"/>
17+
<env name="DB_PASSWORD" value="secret"/>
18+
</php>
19+
<source>
20+
<include>
21+
<directory suffix=".php">src/</directory>
22+
</include>
23+
</source>
2724
</phpunit>

routes/api.php

-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
config('sendportal-host.throttle_middleware'),
1111
RequireWorkspace::class,
1212
])->group(function () {
13-
1413
// Auth'd API routes (workspace-level auth!).
1514
Sendportal::apiRoutes();
16-
1715
});
1816

1917
// Non-auth'd API routes.

tests/Feature/Auth/AuthConfigDisabledTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
class AuthConfigDisabledTest extends TestCase
1212
{
13-
use RefreshDatabase,
14-
WithFaker;
13+
use RefreshDatabase;
14+
use WithFaker;
1515

1616
public function setUp(): void
1717
{

tests/Feature/Auth/AuthConfigEnabledTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
class AuthConfigEnabledTest extends TestCase
1212
{
13-
use RefreshDatabase,
14-
WithFaker;
13+
use RefreshDatabase;
14+
use WithFaker;
1515

1616
public function setUp(): void
1717
{

tests/Feature/Auth/WorkspaceApiTokenTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
class WorkspaceApiTokenTest extends TestCase
1414
{
15-
use RefreshDatabase,
16-
WithFaker;
15+
use RefreshDatabase;
16+
use WithFaker;
1717

1818
/**
1919
* @test

tests/Feature/Setup/SetupTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public function the_setup_command_should_stop_on_the_admin_step_if_there_are_not
5757
$step = $setup->get('steps')[$setup->get('active')];
5858

5959
self::assertEquals(Admin::class, $step['handler']);
60-
self::assertEquals(false, $step['completed']);
60+
self::assertEquals(5, $step['completed']);
6161
}
6262
}

tests/Feature/Workspaces/WorkspaceRequiredTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
class WorkspaceRequiredTest extends TestCase
1313
{
14-
use RefreshDatabase,
15-
WithFaker;
14+
use RefreshDatabase;
15+
use WithFaker;
1616

1717
/**
1818
* @test

0 commit comments

Comments
 (0)