Standalone tests setup - #3
Draft
janrejnowskitotem wants to merge 29 commits into
Draft
Conversation
…alone test infrastructure and reorganize existing tests into suites.
… corresponding suites
…ository test structure and update PHPUnit configuration
…frastructure with MSSQL
…`beforeEach` for improved test structure
…mutation, backed values, and contract compliance
…p fake() datasets in closures
…of truth with seed guardrails
…with PHP 8.3/8.4 and MSSQL
rudashi
reviewed
May 26, 2026
…an setup, and enhanced composer setup
…`, unify bundle tests under `unit`, and update references
…faults, update Docker and test configuration accordingly
janrejnowskitotem
force-pushed
the
standalone-tests-setup
branch
from
May 31, 2026 17:35
9cdd0d8 to
156210f
Compare
…vel, and cleanup unused test file
…from PHPUnit configuration
…integration test structure, and update composer scripts
…e endings and fix Dockerfile `COPY` path
…s, and relation builders
janrejnowskitotem
force-pushed
the
standalone-tests-setup
branch
from
June 11, 2026 22:56
66a9163 to
f16311e
Compare
rudashi
reviewed
Jun 12, 2026
| php: ["8.3", "8.4"] | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 |
| expect(Country::of())->toBe(Country::NULL) | ||
| ->and(Country::of(''))->toBe(Country::NULL) | ||
| ->and(Country::of('NonExistentCountry'))->toBe(Country::NULL); | ||
| }); |
| ->and(Country::of('Germany'))->toBe(Country::GERMANY); | ||
| }); | ||
|
|
||
| it('returns correct currency for each country', function () { |
| mutates(EmployeeRepository::class); | ||
|
|
||
| beforeEach(function () { | ||
| $real = app('db')->connection('optima'); |
Owner
There was a problem hiding this comment.
Do usunięcia niepotrzebny Mock. .env.testing decyduje, z ktorej konfiguracji "Optimy" jest wykorzystywana do testow.
… to v4 in styles and tests workflows
…eaner test setup
janrejnowskitotem
force-pushed
the
standalone-tests-setup
branch
from
June 27, 2026 17:34
a6fad7f to
b94691f
Compare
…s to integration tests, add mutation tests to integration workflow
janrejnowskitotem
force-pushed
the
standalone-tests-setup
branch
from
June 27, 2026 17:41
b94691f to
b0b33ad
Compare
…ch to handle monorepo and standalone setups
…y handle `.env` presence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.