Skip to content

Test team features only when active#698

Merged
taylorotwell merged 3 commits intolaravel:2.xfrom
tedsecretsource:test_team_features_only_when_active
Mar 3, 2021
Merged

Test team features only when active#698
taylorotwell merged 3 commits intolaravel:2.xfrom
tedsecretsource:test_team_features_only_when_active

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.

3 participants