Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Account Test is Failing in Livewire Stubs #748

Closed
inmanturbo opened this issue Apr 6, 2021 · 2 comments
Closed

Delete Account Test is Failing in Livewire Stubs #748

inmanturbo opened this issue Apr 6, 2021 · 2 comments

Comments

@inmanturbo
Copy link
Contributor

$component = Livewire::test(DeleteUserForm::class)

$request->session()->invalidate();

#742

PHPUnit Pretty Result Printer 0.30.1 by Codedungeon and contributors.
==> Configuration: ~/Projects/dev-menus/phpunit-printer.yml

PHPUnit 9.5.4 by Sebastian Bergmann and contributors.


 ==> ExampleTest                 ==> ApiTokenPermissionsTest     ==> AuthenticationTest         ✔  ✔  ✔  
 ==> BrowserSessionsTest         ==> CreateApiTokenTest          ==> DeleteAccountTest           ==> DeleteApiTokenTest          ==> EmailVerificationTest      ⇢  ⇢  ⇢  
 ==> ExampleTest                 ==> PasswordConfirmationTest   ✔  ✔  ✔  
 ==> PasswordResetTest          ✔  ✔  ✔  ✔  
 ==> ProfileInformationTest     ✔  ✔  
 ==> RegistrationTest           ✔  ✔  
 ==> ...nticationSettingsTest   ✔  ✔  ✔  
 ==> UpdatePasswordTest         ✔  ✔  ✔  

Time: 00:01.551, Memory: 50.50 MB

✖ There was 1 error:

1) Tests\Feature\DeleteAccountTest::test_user_accounts_can_be_deleted
  RuntimeException: Session store not set on request.

/.../jetstream-dem/vendor/laravel/framework/src/Illuminate/Http/Request.php:483
/.../jetstream-demo/vendor/laravel/jetstream/src/Http/Livewire/DeleteUserForm.php:67
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Container/Util.php:40
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93
/.../jetsream-demo/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37
/.../jetsream-demo/vendor/livewire/livewire/src/ComponentConcerns/HandlesActions.php:149
/.../jetstream-demo/vendor/livewire/livewire/src/HydrationMiddleware/PerformActionCalls.php:35
/.../jetstream-demo/vendor/livewire/livewire/src/LifecycleManager.php:82
/.../jetstream-demo/vendor/livewire/livewire/src/Connection/ConnectionHandler.php:12
/.../jetstream-demo/vendor/livewire/livewire/src/Controllers/HttpConnectionHandler.php:20
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:48
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Routing/Route.php:254
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Routing/Route.php:197
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:695
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:697
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:672
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:636
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:166
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:141
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110
/.../jetstream-demo/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php:508
/.../jetstream-demo/vendor/livewire/livewire/src/Testing/TestableLivewire.php:190
/.../jetstream-demo/vendor/livewire/livewire/src/Testing/MakesHttpRequestsWrapper.php:29
/...jetstream-demo/vendor/livewire/livewire/src/Testing/TestableLivewire.php:191
/...jetstream-demo/vendor/livewire/livewire/src/Testing/TestableLivewire.php:175
/.../jetstream-demo/vendor/livewire/livewire/src/Testing/Concerns/MakesCallsToComponent.php:134
/.../jetstream-demo/vendor/livewire/livewire/src/Testing/Concerns/MakesCallsToComponent.php:36
/...jetstream-demo/vendor/livewire/livewire/src/Testing/Concerns/MakesCallsToComponent.php:30
/.../jetstream-demo/tests/Feature/DeleteAccountTest.php:26

ERRORS!
Errors: 1, Skipped: 3.
@driesvints
Copy link
Member

Resubmit this with a filled out issue template.

@inmanturbo
Copy link
Contributor Author

Resubmit this with a filled out issue template.

Sorry about that, I created from selecting "mention in issue" from a line number in source code, and it skipped the issue templates. Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants