Skip to content

Standalone tests setup - #3

Draft
janrejnowskitotem wants to merge 29 commits into
masterfrom
standalone-tests-setup
Draft

Standalone tests setup#3
janrejnowskitotem wants to merge 29 commits into
masterfrom
standalone-tests-setup

Conversation

@janrejnowskitotem

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread phpunit.xml Outdated
Comment thread phpunit.xml Outdated
Comment thread composer.json Outdated
Comment thread tests/Support/FakeEnum.php Outdated
Comment thread .docker/8.4/Dockerfile
…`, unify bundle tests under `unit`, and update references
…faults, update Docker and test configuration accordingly
@janrejnowskitotem
janrejnowskitotem force-pushed the standalone-tests-setup branch from 9cdd0d8 to 156210f Compare May 31, 2026 17:35
Comment thread .docker/8.4/Dockerfile Outdated
Comment thread .github/workflows/tests.yml Outdated
Comment thread .github/workflows/styles.yml Outdated
php: ["8.3", "8.4"]
steps:
- name: Checkout code
uses: actions/checkout@v4

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Podbić wersję do v6

Comment thread tests/Arch/ArchTest.php
Comment thread tests/Enums/CountryTest.php Outdated
expect(Country::of())->toBe(Country::NULL)
->and(Country::of(''))->toBe(Country::NULL)
->and(Country::of('NonExistentCountry'))->toBe(Country::NULL);
});

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zmiana na DataSet zamiast and.

Comment thread tests/Enums/CountryTest.php Outdated
->and(Country::of('Germany'))->toBe(Country::GERMANY);
});

it('returns correct currency for each country', function () {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test do usunięcia.

mutates(EmployeeRepository::class);

beforeEach(function () {
$real = app('db')->connection('optima');

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do usunięcia niepotrzebny Mock. .env.testing decyduje, z ktorej konfiguracji "Optimy" jest wykorzystywana do testow.

…s to integration tests, add mutation tests to integration workflow
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.

2 participants