forked from TYPO3-Documentation/TYPO3CMS-Reference-CoreApi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Update functional tests examples (TYPO3-Documentation#4784)
Mainly: - Remove superfluous "Test Case" comment - Add `declare(strict_types=1);` as best practise - Use `@test` annotation as best practise like the Core does - Add `void` return type as best practise - Add `typo3/testing-framework` as requirement to have code completion in the PHP files Note: As this is set to be merged also to 12.4, the `@test` annotation is used (instead of the `#[Test]` annotation) to be compatible with testing framework v7 and v8 (v7 is compatible with phpunit 9/10 and TYPO3 v11/v12, v8 is compatible with phpunit 10/11 and TYPO3 v12/v13). In a follow-up only to main (v13) this will be changed to the annotation. Releases: main, 12.4
- Loading branch information
1 parent
7dda002
commit 6db5048
Showing
7 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
Documentation/Testing/FunctionalTesting/_FunctionalTests/_SomeTest.php
This file contains 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
This file contains 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
10 changes: 6 additions & 4 deletions
10
Documentation/Testing/FunctionalTesting/_FunctionalTests/_SomeTestExtensions.php
This file contains 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
11 changes: 7 additions & 4 deletions
11
Documentation/Testing/FunctionalTesting/_FunctionalTests/_SomeTestFiles.php
This file contains 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
10 changes: 6 additions & 4 deletions
10
Documentation/Testing/FunctionalTesting/_FunctionalTests/_SomeTestFrontend.php
This file contains 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
2 changes: 2 additions & 0 deletions
2
Documentation/Testing/FunctionalTesting/_FunctionalTests/_SomeTestImportDataSet.php
This file contains 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
This file contains 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