Skip to content

[TASK] Migrate controller tests to functional tests (indexAction)#1729

Merged
oliverklee merged 1 commit intomainfrom
1569-migrate-existing-unit-tests-to-functional-split-index-action
Jul 7, 2025
Merged

[TASK] Migrate controller tests to functional tests (indexAction)#1729
oliverklee merged 1 commit intomainfrom
1569-migrate-existing-unit-tests-to-functional-split-index-action

Conversation

@DanielSiepmann
Copy link
Copy Markdown
Contributor

@DanielSiepmann DanielSiepmann commented Jul 7, 2025

It is considered best practice to cover controllers via functional instead of unit tests.
We therefore migrate the existing unit tests to functional tests.

The migration is split into multiple batches for smaller changes. This one covers tests related to indexAction().

We can't add types to constants, as we still support PHP < 8.3.
We therefore completely disable this PHPStan issue for our project.

Relates: #1569

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 7, 2025

Pull Request Test Coverage Report for Build 16115259032

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 16114820807: 0.0%
Covered Lines: 107
Relevant Lines: 107

💛 - Coveralls

@DanielSiepmann DanielSiepmann force-pushed the 1569-migrate-existing-unit-tests-to-functional-split-index-action branch 2 times, most recently from 9cb8867 to 18e298d Compare July 7, 2025 10:08
@DanielSiepmann DanielSiepmann requested a review from a team July 7, 2025 10:09
@DanielSiepmann DanielSiepmann moved this from In Progress to In review in Best Practices code sprint Jul 7, 2025
Comment thread Tests/Functional/Controller/FrontEndEditorControllerTest.php Outdated
Comment thread Tests/Functional/Controller/FrontEndEditorControllerTest.php Outdated
Comment thread Tests/Functional/Controller/FrontEndEditorControllerTest.php Outdated
@DanielSiepmann DanielSiepmann force-pushed the 1569-migrate-existing-unit-tests-to-functional-split-index-action branch 4 times, most recently from cbbeb5c to 41756e5 Compare July 7, 2025 10:38
Comment thread Tests/Functional/Controller/FrontEndEditorControllerTest.php
Comment thread Tests/Functional/Controller/FrontEndEditorControllerTest.php Outdated
@DanielSiepmann DanielSiepmann force-pushed the 1569-migrate-existing-unit-tests-to-functional-split-index-action branch from 41756e5 to 3028472 Compare July 7, 2025 10:41
@DanielSiepmann DanielSiepmann requested a review from oliverklee July 7, 2025 10:43
@DanielSiepmann DanielSiepmann force-pushed the 1569-migrate-existing-unit-tests-to-functional-split-index-action branch 2 times, most recently from 5cde2db to 0cad7d1 Compare July 7, 2025 10:52
It is considered best practice to cover controllers via functional
instead of unit tests.
We therefore migrate the existing unit tests to functional tests.

The migration is split into multiple batches for smaller changes.
This one covers tests related to `indexAction()`.

We can't add types to constants, as we still support PHP < 8.3.
We therefore completely disable this PHPStan issue for our project.

Relates: #1569
@DanielSiepmann DanielSiepmann force-pushed the 1569-migrate-existing-unit-tests-to-functional-split-index-action branch from 0cad7d1 to 8ae342f Compare July 7, 2025 11:07
@oliverklee oliverklee merged commit 79a31dc into main Jul 7, 2025
37 checks passed
@oliverklee oliverklee deleted the 1569-migrate-existing-unit-tests-to-functional-split-index-action branch July 7, 2025 11:08
@github-project-automation github-project-automation Bot moved this from In review to Done in Best Practices code sprint Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants