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: Complete the test suite #68

Merged
merged 36 commits into from
Dec 16, 2024
Merged

test: Complete the test suite #68

merged 36 commits into from
Dec 16, 2024

Conversation

ollieread
Copy link
Member

The PR addresses #36 by completing the test suite, as well as refactoring to separate out unit and feature tests.

@ollieread ollieread self-assigned this Nov 18, 2024
@ollieread ollieread added type: test The issue deals with tests status: accepted The issue has been accepted/acknowledged and is being actioned or will be labels Nov 18, 2024
@ollieread ollieread added this to the V1 Release milestone Nov 18, 2024
@ollieread ollieread linked an issue Nov 18, 2024 that may be closed by this pull request
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 67.14286% with 23 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@2cc90d2). Learn more about missing BASE report.
Report is 37 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rrides/Auth/TenantAwareDatabaseTokenRepository.php 0.00% 4 Missing ⚠️
...ides/Session/TenantAwareDatabaseSessionHandler.php 0.00% 4 Missing ⚠️
src/Concerns/HandlesServiceOverrides.php 78.57% 3 Missing ⚠️
...loquent/Observers/BelongsToManyTenantsObserver.php 0.00% 2 Missing ⚠️
...ase/Eloquent/Observers/BelongsToTenantObserver.php 0.00% 2 Missing ⚠️
src/Facades/Sprout.php 0.00% 2 Missing ⚠️
src/Overrides/SessionOverride.php 0.00% 2 Missing ⚠️
...base/Eloquent/Scopes/BelongsToManyTenantsScope.php 0.00% 1 Missing ⚠️
.../Database/Eloquent/Scopes/BelongsToTenantScope.php 0.00% 1 Missing ⚠️
src/Overrides/CacheOverride.php 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #68   +/-   ##
=======================================
  Coverage        ?   53.31%           
  Complexity      ?      473           
=======================================
  Files           ?       64           
  Lines           ?     1341           
  Branches        ?        0           
=======================================
  Hits            ?      715           
  Misses          ?      626           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

* chore: Add core Sprout settings repository

* refactor: Replace cookie value overrides with usage of settings repository

* refactor: Implement settings repository for overrides

* refactor: Add helper methods for settings

* fix: Fix database override setting
# Conflicts:
#	src/Concerns/HandlesServiceOverrides.php
#	src/Concerns/OverridesCookieSettings.php
@ollieread ollieread merged commit aa03384 into main Dec 16, 2024
4 checks passed
@ollieread ollieread deleted the test/complete-tests branch December 16, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted The issue has been accepted/acknowledged and is being actioned or will be type: test The issue deals with tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make sure the package is fully tested
1 participant