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

Test team features only when active #698

Merged

Conversation

tedsecretsource
Copy link
Contributor

Add a condition in the Inertia and Livewire tests to only test team features if Teams have been enabled. At present, some tests are failing because they expect teams to always be enabled.

This is my first, proper, PR for Laravel, so, if there is a better way to address this issue (like making withPersonalTeam() return null if the teams feature isn't enabled), I'm more than happy to head down that path, just point me in that direction!

Added a condition to create the actingAs user with team features only when teams are enabled.
Added a condition to create the actingAs user with team features only when teams are enabled, this time for Inertia.
Fixed an issue in the formatting spotted by StyleCI
@tedsecretsource
Copy link
Contributor Author

tedsecretsource commented Mar 3, 2021

@driesvints I see you've been instructing people to just delete the tests they aren't using. To be clear, in this case, I am using these tests, just not with the teams feature(s). Also, for future reference, I see tests/P7.3 - L^8.0 is failing. Is this something I can resolve and if so, any pointers on how?

@taylorotwell taylorotwell merged commit 3457044 into laravel:2.x Mar 3, 2021
@driesvints
Copy link
Member

@tedsecretsource tests are failing because of new GH Actions ubuntu builds. I'll fix them today.

@tedsecretsource tedsecretsource deleted the test_team_features_only_when_active branch March 4, 2021 10:24
keljtanoski added a commit to keljtanoski/jetstream that referenced this pull request Mar 5, 2021
Test team features only when active (laravel#698)
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

Successfully merging this pull request may close these issues.

None yet

3 participants